[csswg-drafts] [css-cascade] New syntax for making an entire layer important (#7535)

simevidas has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-cascade] New syntax for making an entire layer important ==
I have some user styles (Stylus extension) that I’m enforcing on a website. For example:

```css
.sticky-header {
  position: static !important;
}

.video-popup {
  display: none !important;
}
```

Instead of writing `!important` in every declaration, I would prefer if I could just put my styles inside an important layer:

```css
@layer stylus-extension !important {
  .sticky-header 
     position: static;
  }

  .video-popup {
    display: none;
  }
}
```


Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7535 using your GitHub account


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

Received on Monday, 25 July 2022 22:41:56 UTC