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?


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

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:37 UTC