Re: [csswg-drafts] [css-cascade] Can we use `@scope` for style isolation? (#11002)

I'm not arguing with the usefulness of isolation in relation to CSS. I get why it sounds useful. 

But… you're just entirely not worried about how this proposal *allows some CSS to turn off all other CSS*? Does that include browser defaults? What about user preferences? They aren't scoped. When I scope over a custom element, do I exclude shadow styles? Are important styles excluded as well? This feels like such a wildly powerful trump card, it requires a whole new cascade-of-scopes. I just have so many questions about how this would be done in a manageable way that doesn't lead to chaos.

So I guess I'm interested in a fleshed-out proposal before I comment more? Maybe you all see a path forward that I'm just missing.

-- 
GitHub Notification of comment by mirisuzanne
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11002#issuecomment-2412737765 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 15 October 2024 03:05:21 UTC