Re: [css3-mediaqueries] Is (width) ever false?

On Tuesday 2008-08-26 12:12 +0200, Anne van Kesteren wrote:
>
> On Thu, 19 Jun 2008 00:04:28 +0200, L. David Baron <dbaron@dbaron.org>  
> wrote:
>> http://dev.w3.org/csswg/css3-mediaqueries/#media1 says:
>>   # For a media feature feature, (feature) will evaluate to true if
>>   # (feature:x) will evaluate to true for a value x other than zero.
>>
>> Does this mean:
>>
>>   (a) (width) is always true, even if the viewport width is zero,
>>   because "0px" is a value other than zero, or:
>>
>>   (b) (width) is false when the viewport width is zero because "0px"
>>   and "0" are both not "other than zero"?
>
> It means (b). Should this be clarified somehow?

It looks like you clarified this by adding the end of:
  # For a media feature feature, (feature) will evaluate to true if
  # (feature:x) will evaluate to true for a value x other than zero,
  # including e.g. 0, 0px, and 0em.
This seems fine, except it's a little confusing because "including"
sort of goes against "other than".  It might be clearer to say:
  # For a media feature feature, (feature) will evaluate to true if
  # (feature:x) will evaluate to true for a value x other than zero
  # or zero followed by a unit identifier (i.e., other than 0, 0px,
  # 0em, etc.).

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/

Received on Friday, 5 September 2008 17:45:10 UTC