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

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 UTC

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant