W3C home > Mailing lists > Public > www-style@w3.org > April 2008

Re: fallback color for background-image (ISSUE-5)

From: Alan Gresley <alan@css-class.com>
Date: Sat, 05 Apr 2008 02:17:36 +1100
Message-ID: <47F64690.6080301@css-class.com>
To: Anne van Kesteren <annevk@opera.com>
CC: www-style@w3.org

Anne van Kesteren wrote:
> Alan Gresley wrote:
>> So the slash / would indicate that a UA falls back to the transparent 
>> background?
> 
> No, it would fall back to a red color in my example.
> 
> 
>> Is this for users who have disabled background images?
> 
> It's for whenever the specified background image does not apply, as I 
> understand it. This could be because images are disabled, because the 
> image format is not supported, because the resource returns a 404, etc.


OK, I'm sort of following. The fall back is the red background. How 
would this work? Does the UA realize that either images have been 
disabled, the image format is not supported or a 404, etc. Wouldn't this 
happen anyway if I just had.

background: red url(image.png);


Why would you need the transparent background?


>> Can you clearly define why you in some cases use this?
>>
>> background:url(...);
> 
> If I want all other background properties to use the initial value.


Which one is the initial value, the other (or better) value or the fall 
back to the red background? I just trying to see a clear picture here. :-)

Like what are the use cases?


Alan

http://css-class.com/test/
Received on Friday, 4 April 2008 15:18:51 GMT

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