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

Open
jship opened this issue Mar 9, 2024 · 0 comments
Open

CSS compression breaks clamp() #1021

jship opened this issue Mar 9, 2024 · 0 comments

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?

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

1 participant