Re: [csswg-drafts] [css-cascade] A way to escape the current cascade layer and render styles in the parent layer (`@layer ..`) (#11010)

@flashymittens – How so? In the example I gave, layers are still useful as a way to define precedence.

```css
/* assume this stylesheet is imported in the `utilities` layer */

.bg-red {
  background-color: red;
}

@layer ../overrides {
  [forced-bg="blue"] {
    background-color: blue;
  }
}

```

-- 
GitHub Notification of comment by benface
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11010#issuecomment-2400017977 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 8 October 2024 14:29:35 UTC