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

[css3-mediaqueries] type of <length>, <integer>, etc.

From: Anne van Kesteren <annevk@opera.com>
Date: Mon, 31 Mar 2008 16:18:45 -0700
To: www-style@w3.org
Message-ID: <op.t8wlpje364w2qv@annevk-t60.oslo.opera.com>

The current Media Queries draft is pretty vague about what kind of  
<length>, <integer>, etc. the various media features accept. As in,  
whether they have to be positive (non-zero), non-negative, any, etc.

Here's my proposal:

   width
   height
   device-width
   device-height

     Non-negative <length>. So 0px is fine. But -1px is not.
     -0px is equal to 0px just like in CSS 2.1

   aspect-ratio
   device-aspect-ratio

     Positive, non-zero, <integer>.

   color
   color-index
   monochrome

     Non-negative <integer>.

   resolution

     Positive <resolution>.

orientation, scan, and grid seem clear enough as is.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>
Received on Monday, 31 March 2008 23:19:27 GMT

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