w3c / css-validator

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

Value Error : font-variant super is not a font-variant value : super #397

Closed mig281 closed 1 year ago

mig281 commented 1 year ago

The error occurs for the following CSS:

h5.my-class-name {
  font-variant: super;
}

Unless I'm misreading something, the MDN documentation on font-variant gives both sub and super as a valid value of font-variant:

sub, super Specifies the keywords and functions related to the font-variant-position longhand property.

ylafon commented 1 year ago

Indeed, font-variant-position values are wrongly forgotten in the font-variant longhand parsing

mig281 commented 1 year ago

Thank you for fixing this, @ylafon! 👏