RE: [css4-background] Drop restriction for color on last background layer only

Or *-gradient.
-Brian

-----Original Message-----
From: www-style-request@w3.org [mailto:www-style-request@w3.org] On Behalf Of Tab Atkins Jr.
Sent: Friday, September 23, 2011 8:00 AM
To: Lea Verou
Cc: www-style list
Subject: Re: [css4-background] Drop restriction for color on last background layer only

On Fri, Sep 23, 2011 at 2:04 AM, Lea Verou <leaverou@gmail.com> wrote:
> I've had a chat with Tab & David Baron yesterday, and we realized that this
> would introduce a huge backwards-compatibility issue: The background-color
> property would become a list, and if it functions like other lists, it would
> break most use cases of multiple backgrounds on the web today. If it doesn't
> function like other property lists, it would be inconsistent.
>
> Therefore, I don't consider this a good idea any more (unless someone can
> think of a solution to that issue. I can't).

To help close out the issue, you can fake background colors on
non-final layers by using the image() function (defined in Image
Values) and just passing it a color.  Without any urls to attempt, it
will immediately create a solid-color image for you.

~TJ

Received on Monday, 26 September 2011 19:50:11 UTC