Re: [csswg-drafts] [mediaqueries] Accessing elements' properties in media queries (#9211)

Looking beyond the proposed syntax, I think what is actually being proposed here is to be able to use [container queries](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_container_queries) in addition to media queries as a criterion to select `<source>`, which is quite reasonable. It may make sense to expand this to other CSS conditionals beyond media queries (e.g. I can think of use cases that would benefit from `@supports` too). 

@AdamSobieski it would be very productive to share the **use cases** that led you to propose this. What did you need to do that required picking `<source>` based on element width?

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


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

Received on Sunday, 27 August 2023 12:25:47 UTC