W3C home > Mailing lists > Public > www-style@w3.org > December 2013

Re: [css3-background] A property to control background opacity

From: Simon Fraser <smfr@me.com>
Date: Mon, 23 Dec 2013 23:34:23 -0800
Cc: David <david.email@ymail.com>, www-style list <www-style@w3.org>
Message-id: <B41232DB-8B31-415F-B533-2AF778D45DF6@me.com>
To: Rik Cabanier <cabanier@gmail.com>
On Dec 23, 2013, at 7:06 PM, Rik Cabanier <cabanier@gmail.com> wrote:

> On Mon, Dec 23, 2013 at 4:33 PM, David <david.email@ymail.com> wrote:
> Hello,
> 
> it would be great if a CSS property would be added to control the opacity of the background-image.
> The background-color and its opacity is already controlable via rgba() or hsla().
> The opacity property itself allows just to control the opacity of the whole element.
>  
> We had a short discussion on this at the last F2F during TPAC [1].
> It was unfortunately not minuted. :-(
> 
> During the meeting, people said that this feature has been requested for a long time but for some reason, it never was spec'ed out or implemented.
> 
> Normative text could look as follows:
> The ‘background-opacity’ property
> 

An alternative to this would be to have an image function that gives an image alpha, e.g.:

background-image: alpha-image(foo.png, 50%);

This would seem preferable to a property that can only apply alpha to background images.

Simon
Received on Tuesday, 24 December 2013 07:34:51 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:17 UTC