css-validator
css-validator copied to clipboard
Unrecognized at-rule "@layer"
Essentially, the title says it all. The @layer rule has been part of the CSS specs for quite a while and is supported by all major browsers. I believe it should not fail validation.
Here is an example that fails saying "Unrecognized at-rule @layer":
@layer foo {
div {
color: red;
}
}
Also, the declaration-only version fails in the same way:
@layer foo, bar;