W3C home > Mailing lists > Public > www-style@w3.org > September 2011

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

From: Lea Verou <leaverou@gmail.com>
Date: Thu, 22 Sep 2011 04:22:01 +0300
Message-ID: <4E7A8DB9.8020901@gmail.com>
To: www-style list <www-style@w3.org>
This always seemed an unnecessary restriction to me as an author, and I 
recall needing a background color in other layers multiple times. The 
use cases I've stumbled on,  usually fall in one or both of the 
following categories:

a) A semi transparent color with background-image(s) showing through 
below it
b) A color clipped with a  background-clip value of padding-box or 
content-box with background-image(s) clipped with border-box or 
padding-box showing through.

I've had a discussion today with Tab and he encouraged me to raise this 
on the list, as:

a) it hasn't been discussed before (I have to admit I found this kinda 
surprising)
b) There are no known implementation issues with shifting this restriction
c) This restriction was added to the spec before background-clip was, so 
the use cases were more limited

Yes, both use cases can be solved with the image(color) and cross-fade() 
syntax, but allowing a background-color in other background layers is 
simpler and more straightforward.

-- 
Lea Verou (http://leaverou.me | @LeaVerou)
Received on Thursday, 22 September 2011 01:25:37 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:04 UTC