RE: [css21][css3-background] background-position examples conflict with prose/grammar

> From: Øyvind Stenhaug [mailto:oyvinds@opera.com]


> That seems more ambiguous, and the presumably intended interpretation
> ("exactly one value is not a keyword") is wrong since it wouldn't say
> how
> to interpret e.g. "background-position: 10px 40px".

I'm not sure whether it's *more* ambiguous since the prose never addressed this
case explicitly either.

How about:

#If one value is specified, the second value is assumed to be 'center'. 
#If two values are specified then the first value represents the horizontal
#position (or offset) and the second represents the vertical position (or offset).
#If both values are keywords, the vertical and horizontal components can
#be specified in any order.

#If three or four value are given....

Received on Friday, 5 March 2010 15:41:40 UTC