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

`all:initial` reverts to initial values for a property (eg `display:inline`) rather than default values for an element (`display:block` for paragraphs, `display:none` for `head`, etc). More likely desired result is either `all:revert` (browser defaults) or `all:revert-layer` (so authors can provide our own defaults in a lower layer). The latter is the most similar to the suggested behavior above - but treating the previous scope as if it's the layer to revert. 

I'm not sure how selective inclusion is different from isolation? Those seem the same to me, or else separate features. Treating an import (or a layer or a sheet) as a mixin is interesting, but unless the scope is isolated from un-scoped styles, I'm not sure it changes anything here. 

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


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

Received on Wednesday, 16 October 2024 17:31:30 UTC