jaspervdj / hakyll

A static website compiler library in Haskell
jaspervdj.be/hakyll
Other
2.7k stars 409 forks source link

CSS compression breaks clamp() #1021

Closed jship closed 3 weeks ago

jship commented 8 months ago

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 commented 3 weeks ago

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