- From: Benoît Rouleau via GitHub <sysbot+gh@w3.org>
- Date: Mon, 07 Oct 2024 21:22:43 +0000
- To: public-css-archive@w3.org
benface has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-cascade] A way to escape the current cascade layer and render styles in the parent layer (`@layer ..`) == My use case is a framework that lets you generate styles in a particular layer. For instance, Tailwind CSS v4 generates all the utility classes in a `utilities` layer (which I can customize). If I want some utilities to have lower precedence than others, I can wrap them in another layer since unlayered styles beat layered styles. But if I want some utilities to have _higher_ precedence than others, I am forced to resort to specificity hacks (e.g. `:is(#a, .my-actual-selector)`). It would be nice if I could wrap them in `@layer ..overrides` and they would win because I would define `overrides` after `utilities`. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11010 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 7 October 2024 21:22:44 UTC