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

Why does it have to be on the element? `getComputedStyle(element)`  is a global function, and IMHO `matchesContainer(element, containerQuery)` could be, too.

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


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

Received on Thursday, 7 November 2024 18:12:10 UTC