W3C home > Mailing lists > Public > www-style@w3.org > June 2008

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

From: L. David Baron <dbaron@dbaron.org>
Date: Wed, 18 Jun 2008 15:04:28 -0700
To: www-style@w3.org
Message-ID: <20080618220428.GA10229@pickering.dbaron.org>

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"?

I'd also note that because specified widths cannot be negative,
(max-width) currently behaves the same as (width), whereas
(min-width) is always true.  Is that really intended?

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Wednesday, 18 June 2008 22:05:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:07 GMT