css-validator icon indicating copy to clipboard operation
css-validator copied to clipboard

Unrecognized at-rule "@layer"

Open vrugtehagel opened this issue 2 years ago • 0 comments

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;

vrugtehagel avatar Dec 22 '23 09:12 vrugtehagel