this post was submitted on 29 Sep 2025
22 points (100.0% liked)

Web Development

4626 readers
5 users here now

Welcome to the web development community! This is a place to post, discuss, get help about, etc. anything related to web development

What is web development?

Web development is the process of creating websites or web applications

Rules/Guidelines

Related Communities

Wormhole

Some webdev blogsNot sure what to post in here? Want some web development related things to read?

Heres a couple blogs that have web development related content

CreditsIcon base by Delapouite under CC BY 3.0 with modifications to add a gradient

founded 2 years ago
MODERATORS
 

Do you guys already use css @layer in your code? just curious.
Do you deem a level of adoption sufficient?

https://caniuse.com/mdn-css_at-rules_layer

you are viewing a single comment's thread
view the rest of the comments
[โ€“] falseWhite@programming.dev 3 points 2 days ago* (last edited 2 days ago) (1 children)

Haven't found a use case for it yet.

If you've used it, please give me some examples of how you used it to solve a styling problem that otherwise would have been difficult or messy with other css rules.

[โ€“] Vincent@feddit.nl 4 points 1 day ago

It's been a while, so I'm not sure about the details, but I had some elements on our website that I wanted to show when our extension was installed, and hide if not. I think I used layers, and then had the extension move the layer priority order. Was a clean way to fence off the extension-specific code.