# No anonymous layers Disallow anonymous (unnamed) `@layer` blocks. ```css @layer reset, utilities; @layer { /* ---^ */ * { margin: 0; } } ``` An anonymous `@layer` block has no name and cannot be referenced or extended later. This makes CSS harder to maintain and reason about, as the layer cannot be ordered relative to other layers or extended in other stylesheets. ## Options ### `true` The following are considered problems: ```css @layer { * { margin: 0; } } ``` ```css @import url(test.css) layer; ``` ```css @import url(test.css) layer (min-width: 1000px); ``` The following patterns are _not_ considered problems: ```css @layer reset { * { margin: 0; } } ``` ```css @layer reset, utilities; @layer reset { * { margin: 0; } } @layer utilities { .u-flex { display: flex; } } ``` ```css @import url(test.css) layer(mobile) supports(display: grid); ``` ## Prior art - [CSS Cascade 5 spec](https://www.w3.org/TR/css-cascade-5/#layer-ordering) — `@layer` ordering and naming