Re: [csswg-drafts] [css-contain] Is it possible to apply containment inside @container? (#6177)

If I understand things corrent, in your example, the `grandchild` should query the `parent`, as the `child`'s containment is disabled, but there is a container above (`parent`) still matching the CQ which made the child to lose containment.

However, testing this in chrome canary — there seems to be a bug currently: https://codepen.io/kizu/pen/abpWLgz — when resizing the window after we reduce the size and then increase it, if there is a disabled containment on .child inside a CQ, then when we restore the width, the style is not applied properly.

Overall, I don't think there is a cyclic dependency, but it could probably be expensive to compute properly, given that the current implementation bugs there?


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


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

Received on Saturday, 3 April 2021 12:43:15 UTC