validator icon indicating copy to clipboard operation
validator copied to clipboard

clamp() throwing an incorrect error

Open JoshBeveridge opened this issue 2 years ago • 3 comments

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);

JoshBeveridge avatar May 14 '23 14:05 JoshBeveridge

this is similar to https://github.com/csstree/validator/issues/27

skyclouds2001 avatar Dec 25 '24 12:12 skyclouds2001

seems a bug in https://github.com/mdn/data/, I'll check it

skyclouds2001 avatar Dec 25 '24 12:12 skyclouds2001

same cases existed in other css math functions: https://drafts.csswg.org/css-values/#math

skyclouds2001 avatar Dec 26 '24 13:12 skyclouds2001