W3C home > Mailing lists > Public > www-style@w3.org > February 2011

Re: Parsing background shorthand

From: Rafal Chlodnicki <rchlodnicki@opera.com>
Date: Tue, 01 Feb 2011 14:26:01 +0100
To: www-style@w3.org
Message-ID: <op.vp77lnt4bbdj5y@ghost.oslo.osa>
On Tue, 01 Feb 2011 12:48:36 +0100, Rafal Chlodnicki  
<rchlodnicki@opera.com> wrote:

> Spec ( http://www.w3.org/TR/css3-background/#the-background ) gives few  
> examples for background shorthand that do not work in neither Opera,  
> Firefox or Chrome:
>
> 40% url("chess.png") / 10em gray round fixed border-box
> #CCC top left url("metal.jpg") / 100% auto no-repeat
>
> Syntax of shorthand is defined as:
>
> <final-bg-layer> = <bg-image> || <bg-position> [ / <bg-size> ]? ||  
> <repeat-style> || <attachment> || <box>{1,2} || <'background-color'>
>
> Both of these examples have bg-position placed before bg-image and then  
> only after bg-image they specify "/ bg-size". That looks wrong to me  
> (and to tested browsers).
>
> If I move bg-position to be located before "/ bg-size" then it works in  
> Opera but still doesn't work in Chrome and Firefox.
>
> Are we dealing with bad examples + incomplete implementations or I'm  
> doing something wrong?

Just noticed that examples are fixed in draft already:
http://dev.w3.org/csswg/css3-background/#the-background


-- 
Rafał Chłodnicki
Core QA, Opera Software ASA
Received on Tuesday, 1 February 2011 13:27:02 GMT

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