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

cdoublev has just created a new issue for https://github.com/w3c/csswg-drafts:

== [mediaqueries] Improve definition of evaluating media features in boolean context ==
If I understand it correctly, the following is equivalent to *the feature evaluates to true for any value that is not `none`, the number `0`, or a `<dimension>` with the value `0`, otherwise it evaluates to false.*

  > If the feature would be true for any value other than the number `0`, a `<dimension>` with the value `0`, the keyword `none`, or a value explicitly defined by that media feature to evaluate as false in a boolean context, the media feature evaluates to true. Otherwise, it evaluates to false.

https://drafts.csswg.org/mediaqueries-5/#mq-boolean-context

I find the current wording a bit contrived, imo. I have to read it by joining these parts, which are interleaved with other content in between: 

  - *If the feature would be true for any value other than* 
  - *a value explicitly defined by that media feature to evaluate as false, the media feature evaluates to true*

I cannot find a non numeric media feature value that is explicity defined to evaluate as false. But it could still be reworded to *the feature evaluates to true for any value that is [...], or a value that is not explicitly defined by that media feature to evaluate as false, otherwise it evaluates to false.*

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8050 using your GitHub account


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

Received on Wednesday, 9 November 2022 14:42:12 UTC