csso icon indicating copy to clipboard operation
csso copied to clipboard

css math functions such as min(), max() and clamp() need to retain their spaces

Open MichaelDaum opened this issue 4 years ago • 1 comments

This is thankfully already the case for calc(). However

.foo {width: max(20vw, 400px);}

should become

.foo{width:max(20vw, 400px)}

and not

.foo{width:max(20vw,400px)}

Note the extra space after the comma.

MichaelDaum avatar Mar 22 '21 12:03 MichaelDaum

Could you please provide more details, why white spaces need to be retained in these cases? As I know white spaces inside a function is not required. The single exception is for white spaces around + and - inside calc() function. I missed something?

lahmatiy avatar Mar 25 '21 13:03 lahmatiy