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

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 UTC