W3C home > Mailing lists > Public > www-style@w3.org > March 2010

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

From: Řyvind Stenhaug <oyvinds@opera.com>
Date: Fri, 05 Mar 2010 11:22:35 +0100
To: "Sylvain Galineau" <sylvaing@microsoft.com>
Cc: "www-style@w3.org" <www-style@w3.org>, "Brian Manthos" <brianman@microsoft.com>, "Prabs Chawla" <pchawla@microsoft.com>, "Arron Eicholz" <Arron.Eicholz@microsoft.com>
Message-ID: <op.u83a3xlqru61ud@oyvinds-desktop>
On Fri, 05 Mar 2010 01:48:35 +0100, Sylvain Galineau  
<sylvaing@microsoft.com> wrote:

> Update:
>
> #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). <percentage> and  
> <length> values here represent an #offset of the top left corner of the  
> background image from the top left corner of the background positioning  
> area.
>
> ...to:
>
> #If two values are given and 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). <percentage> and <length>  
> values here represent an #offset of the top left corner of the  
> background image from the top left corner of the background positioning  
> area. If both
> #values are keywords, the vertical and horizontal component can be  
> specified in either order.

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".

Would a different wording be less confusing? E.g. "If two values are  
given, then unless both of them are keywords, the first value represents  
[...]". Or...

If two values are given and they are both keywords, the interpretation is  
given by the keywords and the vertical and horizontal components can be  
specified in either order. For other combinations of two values, the first  
value represents the horizontal position (or offset) and the second  
represents the vertical position (or offset). <percentage> and <length>  
values here represent an offset of the top left corner of the background  
image from the top left corner of the background positioning area.

-- 
Řyvind Stenhaug
Core Norway, Opera Software ASA
Received on Friday, 5 March 2010 10:22:36 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:25 GMT