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 

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


Received on Friday, 4 April 2008 17:37:56 UTC

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