W3C home > Mailing lists > Public > www-style@w3.org > August 2007

Re: [css3-mediaqueries] color-index feature interaction with color feature

From: Håkon Wium Lie <howcome@opera.com>
Date: Wed, 22 Aug 2007 15:54:37 +0200
Message-ID: <18124.16413.570795.722964@gargle.gargle.HOWL>
To: Stewart Brodie <stewart.brodie@antplc.com>
Cc: www-style@w3.org

Also sprach Stewart Brodie:

 > Does "color-index" have a zero value unless a lookup table is used?
 >
 > Example:
 > 
 > My display is a 32bpp colour.  Each pixel is defined by a single 32-bit
 > value, containing 8 bits each of red, green, blue and transparency.  There
 > is no indirection through a lookup table.
 > 
 > Therefore, the value of the "color" feature is 8, clearly.
 > 
 > But what about "color-index"?  Does it apply to this type of display device?
 > Should its value be treated as 0 or 4294967296?

Good catch.

The normative part of the spec doesn't say. However, Example XXV
suggest that it should be zero by suggesting that "all color color
index devices" can be selected this way:

  For example, here are two ways to express that a style sheet applies to all color index devices:
  @media all and (color-index) { ... }
  @media all and (min-color-index: 1) { ... }

So, I suggest we clarify that it's zero if no lookup table is used.

-h&kon
              Håkon Wium Lie                          CTO °þe®ª
howcome@opera.com                  http://people.opera.com/howcome
Received on Wednesday, 22 August 2007 13:55:25 GMT

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