Doesn’t work with Cascade Layers
See original GitHub issueWhen using a container query within a cascade layer the polyfill no longer works.
This works:
body {
container-type: inline-size;
}
@container (inline-size > 100px) {
p {
background: yellow;
}
}
This doesn’t:
@layer layer1;
@layer layer1 {
body {
container-type: inline-size;
}
@container (inline-size > 100px) {
p {
background: yellow;
}
}
}
Tested in Firefox. Full demo here.
Issue Analytics
- State:
- Created a year ago
- Comments:5
Top Results From Across the Web
Control CSS cascade with cascade layers - LogRocket Blog
The cascade's primary job is to assess an unordered list of CSS declarations for a given property in which the selector matches a...
Read more >A Complete Guide to CSS Cascade Layers
This is your complete guide to CSS cascade layers, a CSS feature that allows us to define explicit contained layers of specificity, ...
Read more >Getting Started With CSS Cascade Layers - Smashing Magazine
Cascade layers aim to place control of specificity and order back in the hands of authors. Use of @layer grants explicit power to...
Read more >Layering Up with CSS Cascade Layers - DEV Community
Cascade Layers work in the same way, but instead of elements on a page that we're moving up and down in the layer...
Read more >CSS Cascade Layers (@layer) support · Issue #105 - GitHub
I'm working on a polyfill using the is() selector: is there a contribution guide for this project? I couldn't find it. ❤️ 3...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve cut the 0.2.3 release now with the detailed changes, which appears to resolve the issue. Let me know if you run into any further issues!
Works great, thanks!