Re: [csswg-drafts] [css-contain] CQ vs shadow boundaries (#5984)

This behavior seems like a bug to me - or at least an accidental side-effect of the decision above. My understanding was that queries inside a shadow context would be able to see wrapping containers - but queries from outside should not be able to see _into_ nested shadow dom.

This example is a specific complication of that, where:
- the query is inside a shadow context, but
- slotted into another shadow context, which has the container

In my mind, that should still work - as we still want the shadow-defined query to see its surrounding context. But I also understand why that might be complicated by the fact that the query and container are in different shadow doms.

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


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

Received on Thursday, 3 March 2022 23:07:32 UTC