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

Looking a bit closer at the specs, the most consistent thing might be to scope to the shadow _host_ instead, though still match in the [context of the shadow tree](https://drafts.csswg.org/css-scoping-1/#in-the-context-of-a-shadow-tree). So the scoping root is:

 1. The parent element of the owner node, if such an element exists
 2. Otherwise the shadow host, if the containing node tree is a shadow tree
 3. Otherwise the root of the containing node tree.


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


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

Received on Friday, 11 August 2023 13:36:14 UTC