W3C home > Mailing lists > Public > www-style@w3.org > August 2005

Re: Solving the alpha images and background-color problem

From: David Woolley <david@djwhome.demon.co.uk>
Date: Sat, 13 Aug 2005 22:46:44 +0100 (BST)
Message-Id: <200508132146.j7DLki401502@djwhome.demon.co.uk>
To: www-style@w3.org

> background: red;
> background: transparent standincolor(red) url(foo.png);

background is a shorthand property, so this is equivalent to:

background-color: red;
background-color: transparent;
/* whatever the standalone equivalent of standincolor(red) is */
background-image: url(foo.png);

which is equivalent to:

background-color: transparent;
/* whatever the standalone equivalent of standincolor(red) is */
background-image: url(foo.png);

which for a browser with no image support but colour support, or
with images off and colour support, but without the new property is:

background-color: transparent;
Received on Saturday, 13 August 2005 22:39:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:40 GMT