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

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

From: Sylvain Galineau <sylvaing@microsoft.com>
Date: Fri, 5 Mar 2010 15:40:57 +0000
To: Řyvind Stenhaug <oyvinds@opera.com>
CC: "www-style@w3.org" <www-style@w3.org>
Message-ID: <045A765940533D4CA4933A4A7E32597E10D6DC28@TK5EX14MBXC111.redmond.corp.microsoft.com>
> 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

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:43 UTC