Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow anchor-size(…) in arbitrary values #14394

Merged
merged 5 commits into from
Sep 17, 2024

Conversation

RobinMalfait
Copy link
Member

This PR fixes an issue where using anchor-size in arbitrary values resulted in the incorrect css.

Input: w-[calc(anchor-size(width)+8px)]
Output:

.w-\[calc\(anchor-size\(width\)\+8px\)\] {
  width: calc(anchor - size(width) + 8px);
}

This PR fixes that, by generating the correct CSS:

.w-\[calc\(anchor-size\(width\)\+8px\)\] {
  width: calc(anchor-size(width) + 8px);
}

@RobinMalfait RobinMalfait force-pushed the fix/anchor-size-function-v4 branch 2 times, most recently from a575967 to e41cb0c Compare September 17, 2024 10:45
@RobinMalfait RobinMalfait force-pushed the fix/anchor-size-function-v4 branch from e5f044e to c8b2463 Compare September 17, 2024 15:12
@RobinMalfait RobinMalfait force-pushed the fix/anchor-size-function-v4 branch from c8b2463 to 46a7e24 Compare September 17, 2024 15:26
@RobinMalfait RobinMalfait merged commit 23cee5c into next Sep 17, 2024
3 checks passed
@RobinMalfait RobinMalfait deleted the fix/anchor-size-function-v4 branch September 17, 2024 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants