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

Will `matchContainer()` match on children elements of a container, the container itself, or both? 

For example, with anchored container queries, I want to know when the applied fallback changes of the anchored element itself. It would be awkward to have to call `matchContainer` on a container's child (and not all anchored elements have children, necessarily). 

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


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

Received on Thursday, 5 March 2026 16:36:06 UTC