w3c / css-validator

W3C CSS Validation Service
https://jigsaw.w3.org/css-validator/
Other
204 stars 105 forks source link

CSS variable in clamp() without default value #412

Closed kamenf closed 5 months ago

kamenf commented 7 months ago

When using CSS variable without default value in clamp() reports "The types are incompatible" error.

Example:

.my-class {
  font-size: clamp(0.5rem, var(--outer-size) / 7.5, 2rem);
}

generates:

Value Error : font-size The types are incompatible )
ylafon commented 5 months ago

Fixed, along with the use of unresolvable (at declaration time) variables in other mathematical functions.