csstree / validator

CSS validator based on CSSTree
MIT License
65 stars 14 forks source link

clamp() throwing an incorrect error #33

Open JoshBeveridge opened 1 year ago

JoshBeveridge commented 1 year ago

It seems that using clamp() as a value in both height and font-size both fail validation. This is likely a problem with clamp() across all properties.

Specifically, I'm using the basic examples from MDN as a test case:

height: clamp(1rem, 10vw, 2rem);
font-size: clamp(1rem, 10vw, 2rem);