Re: [css3-background] Nitpick on interpretation of one keyword+offset in background-position

On 01/06/2010 09:19 AM, Øyvind Stenhaug wrote:
> The current text says "If two values are given and at least one value is
> not a keyword, then the first value represents the horizontal position
> (or offset) and the second represents the vertical position (or
> offset)". There are a couple of cases where this is nonsensical, since
> one can have
>
> <bg-position> = [ top | bottom ] [ <percentage> | <length> ]
>
> (e.g. "background-position: top 10px"), where the first value clearly
> can't represent the horizontal position.

That combination is forbidden by the property's value grammar:
   http://www.w3.org/TR/css3-background/#the-background-position
(This restriction is inherited from CSS2 and cannot be changed.)

~fantasai

Received on Thursday, 7 January 2010 01:38:07 UTC