Re: [csswg-drafts] [css-contain-3] Container Queries and DOM-APIs like querySelector (#6215)

I'm not sure about `querySelector` and I don't know if co-opting this issue is worse than opening another (happy to do if anyone agrees), but it does seem worth thinking about what an author of a component might reasonably desire from a scripting standpoint and about how well any proposed solutions matches similar things in the platform. In fact, I was just having some similar thoughts yesterday...

For example, should there be any equivalent to `MediaQueryList` that one could utlize that reported on changes to whatever the applicable container of the element is?  Is there any method one can use to access or determine what the applicable container is at the time of execution ("computedStyle-like")?   etc..


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


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

Received on Friday, 30 April 2021 15:14:09 UTC