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

For the implicit case, it follows from the layout tree, but what if you have a web component where you want to have your styles depend on the closest container and there is no such container inside the component. Do you really want to query a container outside of your component? Would it be natural that the shadow host is the outermost container to query and that the CQ fallback happens on the shadow host level?

For the container-name proposal it's a question of name clashes. If you have a @container mycontainer  (inline-size >= 200px), you probably don't want to match an arbitrary mycontainer outside of your web component when you don't have a mycontainer in your ancestor chain inside the component?



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


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

Received on Tuesday, 8 June 2021 10:09:26 UTC