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

> It should be ENTIRELY up to the custom-component how it handles slotted light dom content

True, but custom-component can use container queries with ::slotted() rules inside its shadow dom to style its slotted content based on containers inside the shadow tree, or containers in ancestor trees.

The concern is around the component's internals to affect styling that happens outside of the component. An argument in favor of matching flat tree ancestors, is that the component's users would want to match containers based on the box tree, although the users cannot generally affect what becomes a container of a certain type inside the component, unless the component exposes that possibility via ::part()s.


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


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

Received on Friday, 4 March 2022 08:43:59 UTC