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

CSS compression breaks clamp() #1021

Closed
jship opened this issue Mar 9, 2024 · 1 comment
Closed

CSS compression breaks clamp() #1021

jship opened this issue Mar 9, 2024 · 1 comment

Comments

@jship
Copy link

jship commented Mar 9, 2024

Given this CSS:

html {
  font-size: clamp(2.25rem, 2vw + 1.5rem, 3.25rem);
}

compressCssCompiler will strip the spaces around +, which makes the property value invalid.

html{font-size:clamp(2.25rem,2vw+1.5rem,3.25rem)}

Perhaps compressCalcExpression could be applied over clamp values to get the same space-preserving behavior as calc values?

@LaurentRDC
Copy link
Collaborator

Thank you for your report! This issue has been fixed in the exact way you suggested

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants