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 04:36:31 +1100
Message-ID: <47F6671F.9020002@css-class.com>
To: fantasai <fantasai.lists@inkedblade.net>
CC: Brad Kemper <brkemper@comcast.net>, Anne van Kesteren <annevk@opera.com>, www-style@w3.org

fantasai wrote:

> 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.
> 
> ~fantasai


I would suggest using Anne syntax for consistency. A forward slash "/" 
would indicate either a fall back or a fall forward. like.

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


The fall back to the left I think is more intuitive for authors. Also 
using commas would mess with multiple background strings. This would be 
better.

background: blue / url(hello.png), url(goodbye.png), transparent;


Alan

http://css-class.com/test/
Received on Friday, 4 April 2008 17:37:56 GMT

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