Skip to content

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
@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.

3 participants