Re: [csswg-drafts] [css-scoping][css-cascade] :scope in shadowy prelude-less @scope matches nothing (#9178)

> Would this mean that you can author a stylesheet with `:scope { }`, include that stylesheet in either the root of the document, where it would match `:root`, or in a shadow root, where it would match `:host`? E.g. `:is(:root, :host)`

@jacobrask I don't think this change would have any impact on how `:scope` works _outside an `@scope` rule_. This is specific to the scope created by `@scope { … }` in a shadow context. Used together… I think you would be able to create the effect?

If no `@scope` is defined, then `:scope` is treated as `:root`. 

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


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

Received on Wednesday, 14 August 2024 20:24:58 UTC