validator icon indicating copy to clipboard operation
validator copied to clipboard

support for `@layer`

Open mayank99 opened this issue 2 years ago • 1 comments

currently, when using cascade layers, the csstree-validator extension shows this error:

[CSSTree] Unknown at-rule `@layer`

@layer has been supported in all modern browsers for about a year now, so it would be nice to have support for it.

i understand that it can be difficult to maintain compatibility with every new feature and i'm happy to help in any way. i also think that it would be nice to have some kind of "allowlist" to prevent errors on such new syntaxes.

mayank99 avatar Feb 10 '23 00:02 mayank99

seems that mdn-data has @layer data yet

https://github.com/mdn/data/blob/31d4ebe3cdf79c3a13c8c601c18bcc90c0cbb0fe/css/at-rules.json#L324-L335

skyclouds2001 avatar Nov 30 '24 13:11 skyclouds2001