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
[–] [S] 1 point 1 year ago*

I think it really helps if you dont like !important:

@layer base, toggles;
@layer toggles {
    .wprm-print-hide-recipe-nutrition .wprm-recipe-nutrition-label-section {
        display: none;
    }
}

instead of

.wprm-print-hide-recipe-nutrition .wprm-recipe-nutrition-label-section {
    display: none !important;
}

I guess I answered my own question - I think its a neat feature and ill use it.

  • source
  • parent