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

On 22/9/11 04:32, Brian Manthos wrote:
> For CSS4, this sounds like a nice simplification and feature enhancement.  For CSS3, I'd have concerns.
> -Brian
> -----Original Message-----
> From: [] 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
> 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.
css3-background is in CR, so even if you didn't have concerns, I don't 
think it would be very easy to change. In any case, I tagged my post as 
css4-background (of course I'd prefer css3, but my hopes for that are 
pretty low).

Lea Verou ( | @LeaVerou)

Received on Thursday, 22 September 2011 01:47:00 UTC