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

Just wanted to add that I run into a use case where I wanted to be able to do; 

`window.matchContainer('(aspect-ratio < 16 / 9)')`

Would have _loved_ to be able to do this instead of writing some custom ResizeObserver which could potentially lead to performance issues if not managed mindful of re-paints for calculating/retrieving values.

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


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

Received on Friday, 18 August 2023 11:22:37 UTC