Re: Exact syntax for <color> values

Hi Giovanni.

Cameron McCormack:
> > I’m trying to work out the exact syntax that RGB <color> values
> > have, according to CSS 2.1.  http://www.w3.org/TR/CSS21/syndata.html
> > says:
…
> >  * Are the integers within the parentheses <integer>s or something
> >    else?

Giovanni Campagna:
> They're <integer>s (at least, this is my assumption). Section 4.3.1
> has some clarifications about "integers" and "<integer>s"

OK.  I guess <integer> should be referenced explicitly if that is the
intention.

> >  * Are the percentages within the parentheses ‘<integer> "%"’,
> >    ‘<number> "%"’ or something else?
> 
> <percentage> is defined in
> <http://www.w3.org/TR/CSS21/syndata.html#value-def-percentage> as
> <number> '%'

Thanks (I overlooked <percentage> in that chapter).  As above, the
definition of <color> should reference <percentage> explicitly to make
this clear, IMO.

-- 
Cameron McCormack ≝ http://mcc.id.au/

Received on Monday, 13 April 2009 12:51:13 UTC