w3c / css-validator

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

Unrecognized at-rule "@layer" #410

Open vrugtehagel opened 8 months ago

vrugtehagel commented 8 months ago

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;