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

@philkunz The WG decided not to revert this, but to start working on a more explicit and general solution to the problem of 'shadow DOM that should be more visible'. (not sure why the transcript/resolution hasn't posted yet). 

In the meantime, the two workarounds are:
- to measure actual slotted space, use a wrapping element
- to measure changes on a less 'immediate' container, the shadow DOM can do the query, and set values on custom props that will inherit into the slot. Depending on the need, those can be values for direct use, or more 'semantic' triggers (like `wide` or `narrow`) that a style query could respond to.

I know that neither of those is ideal, but I think it's true we need a more general fix to this problem. I hope we can make that happen soon.

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


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

Received on Wednesday, 30 March 2022 16:47:00 UTC