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

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

From: fantasai <fantasai.lists@inkedblade.net>
Date: Fri, 04 Apr 2008 10:22:37 -0700
Message-ID: <47F663DD.1000507@inkedblade.net>
To: Brad Kemper <brkemper@comcast.net>
CC: Alan Gresley <alan@css-class.com>, Anne van Kesteren <annevk@opera.com>, www-style@w3.org

Brad Kemper wrote:
> There might be other styles you would want to change if the image did 
> not load, besides just background-color. Maybe we need a ": 
> resources-not-loaded" pseudo-class that could be applied to any element, 
> class, etc., which would provide fallback properties when that element 
> contained external resources that did not load (for whatever reason).

I think that's getting a little too generic. Most of the time
if decorative images don't load it's not a big deal. For
backgrounds it's a readability issue, though.

The other important one that needs fallbacks is 'content', we're
handling that by making it take a comma-separated list of values.

   content: url(hello.png), "hello";

I guess you could argue that distinguishing between the cases where
this results in a replaced element (using hello.png) vs. where it's
just text ("hello") would be useful.

Received on Friday, 4 April 2008 17:23:25 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:35 UTC