Re: [csswg-drafts] [css-cascade-6] Tree-crossing @scope (#12555)

Ah, we should change the definition. That definition is meant to just make sure that things in the same tree that *aren't* in scope aren't matched; it wasn't intended to restrict cross-tree matching, so long as the elements in the other tree could be considered reasonably "in the scope".

For shadow trees, I think this is very easy - if the shadow host is in scope, the shadow tree is in scope too.

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


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

Received on Thursday, 31 July 2025 16:51:19 UTC