Restemat
Restemat
KPCKevin Powell - Community
Created by Snap Riley on 10/1/2024 in #front-end
Using :not() & nonexistent ID to create specificity for targeted unique elements (Hackity hack)
What we need is the ability to assign stylesheets linked with the html link tag to cascade layers. This has been proposed by Miriam Suzanne https://css.oddbird.net/layers/link-layer/ and after a couple of years of discussions is now at a design review stage https://github.com/w3ctag/design-reviews/issues/970. But until this has been approved and implemented in browsers I think the *:not(#a#b) {...} trick is as good as any in a pinch 🤷‍♂️
8 replies
KPCKevin Powell - Community
Created by Snap Riley on 10/1/2024 in #front-end
Using :not() & nonexistent ID to create specificity for targeted unique elements (Hackity hack)
Relevant article on using something similar to this technique to override unlayered styles https://blog.kizu.dev/extra-nesting-specificity/
8 replies