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

[css3-background] 'background: url(foo) white' and 'background: url(foo), white'

From: <tao.yu@nokia.com>
Date: Fri, 21 Jan 2011 15:39:47 +0000
To: <www-style@w3.org>
CC: <Art.Barstow@nokia.com>
Message-ID: <2541CC5D225E5340A31E01FE6EC795F50283599D@008-AM1MPN1-023.mgdnok.nokia.com>
Hi, 

I am not clear about the last statement in section 3.10 "The 'background' shorthand property", which says:

Note that 'background: url(foo) white' and 'background: url(foo), white' have the same effect.

Does that mean comma can be used between any of the individual properties and have the same effect as without it? If so, 

background: repeat-x, url("support/green15x15.png"), red, padding-box;

is equivalent to:

background: repeat-x url("support/green15x15.png") red padding-box;

Is that correct? I would appreciate if this can be confirmed and explained in more details.

Thanks,
-Tao
Received on Friday, 21 January 2011 15:40:33 GMT

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