Random access and the CSS3 Values spec

As mentioned in my previous messages to the list, I started to  
implement media query validation based on a faulty assessment of the  
simplicity of media queries. This was partly due to looking up  
individual things in normative references instead of reading  
everything from start to finish.

If one looks up the definition of e.g. <length> in the CSS3 Values  
spec[1], one finds that "The format of a length value (denoted by  
<length>) is a <number> immediately followed by a unit identifier  
(e.g., 'px', 'gd'). After the '0'  length, the unit identifier is  
optional."

Nothing about calc() or any other functional notation. I learned about  
calc() in passing on #css.

For the benefit of readers who look up individual definitions, it  
would be helpful to make the value type definition mention the  
relevant functions that can appear in a given value type.

[1] http://www.w3.org/TR/css3-values/#lengths
-- 
Henri Sivonen
hsivonen@iki.fi
http://hsivonen.iki.fi/

Received on Saturday, 17 November 2007 15:32:45 UTC