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

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

From: Brian Manthos <brianman@microsoft.com>
Date: Thu, 22 Sep 2011 01:32:20 +0000
To: Lea Verou <leaverou@gmail.com>, www-style list <www-style@w3.org>
Message-ID: <9710FCC2E88860489239BE0308AC5D1716BBCC@TK5EX14MBXC266.redmond.corp.microsoft.com>
For CSS4, this sounds like a nice simplification and feature enhancement.  For CSS3, I'd have concerns.


-----Original Message-----
From: www-style-request@w3.org [mailto:www-style-request@w3.org] On Behalf Of Lea Verou
Sent: Wednesday, September 21, 2011 6:22 PM
To: www-style list
Subject: [css4-background] Drop restriction for color on last background layer only

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 
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:32:56 UTC

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