validator icon indicating copy to clipboard operation
validator copied to clipboard

@font-feature-values CSS at-rule incorrectly marked as an error.

Open Electricz0 opened this issue 2 years ago • 3 comments

Code to reproduce the error:

@font-feature-values Fira Code {
    @character-variant {
        alt-a: 1;
        alt-g: 2;
        alt-i-1: 3;
    }
}

Error message:

Error Unrecognized at-rule @font-features-values From line 1, column 1; to line 1, column 20 @font-feature-values {↩ @c

image

Electricz0 avatar Jan 31 '24 09:01 Electricz0

It seems this feature is still in draft stage, which could explain lack of support. @ylafon, are you the right contact to follow up with?

j9t avatar Oct 20 '25 09:10 j9t

Please re-raise this issue against the CSS validator at https://github.com/w3c/css-validator/issues/new.

(For CSS checking, the HTML checker relies uses the CSS validator code as a library — so after any change for this gets made to the upstream CSS-validator code, we will just pull that change into the HTML checker.)

sideshowbarker avatar Dec 07 '25 02:12 sideshowbarker

After ensuring it has not been done before, I have raised the issue against the CSS validator here:

https://github.com/w3c/css-validator/issues/475

Electricz0 avatar Dec 22 '25 07:12 Electricz0