Re: [csswg-drafts] [css-contain] Similar to window.matchMedia(), Container Queries should have a similar method (#6205)

I created a [polyfill](https://github.com/teetotum/match-container) for `Element.matchContainer()`
It supports _size queries_ and _style queries_ and uses the CSS feature under the hood so it will only work in browsers that already support the `@container` queries CSS feature. All it really does is only adding the scripting API.

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


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

Received on Monday, 24 February 2025 00:52:30 UTC