Re: [csswg-drafts] [mediaqueries-4] Confused about the Boolean value of media features

Ah, I think I’ve figured it out. All keyword values with the exception of `none` evaluate to `true`, because they represent something that *can* be true in certain conditions. It is logically impossible for a keyword value to never be true, unless it were explicitly defined to never be `true`, which wouldn’t make sense.

That being said, the quote in my original post implies that there exist media features that evaluate to `false` in a Boolean context. Could you give an example of such a media feature? This doesn’t seem possible, since `0` and `none` are the only falsy media feature values.

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

Received on Thursday, 7 September 2017 10:30:46 UTC