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

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

From: Řyvind Stenhaug <oyvinds@opera.com>
Date: Wed, 06 Jan 2010 18:19:18 +0100
To: "www-style@w3.org" <www-style@w3.org>
Message-ID: <op.u54fqgw1ru61ud@oyvinds-desktop>
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.

-- 
Řyvind Stenhaug
Core Norway, Opera Software ASA
Received on Wednesday, 6 January 2010 17:20:03 GMT

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