Re: [csswg-drafts] [mediaqueries] Improve definition of evaluating media features in boolean context (#8050)

I'm also finding this difficult to get my head around.

I'd like to request that each media-feature definition gets an explicit explanation of what's true or false in a boolean context. The section in the spec that cdoublev quoted explains the general case, but it's not always true, and it's not clear why.

For example, `@media (display-mode)` is expected to evaluate to true ([wpt](http://wpt.live/css/mediaqueries/display-mode.html)). But `@media (dynamic-range)` evaluates to false ([wpt](http://wpt.live/css/mediaqueries/dynamic-range.html)). I can't see what's different about these two that that would make one true and the other false.

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


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

Received on Thursday, 22 May 2025 13:09:57 UTC