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

Re: ability to use background-color in any background layer

From: Dirk Schulze <dschulze@adobe.com>
Date: Mon, 8 Dec 2014 20:06:26 +0000
To: Anton Tsyganenko <anton-tsyganenko@yandex.ru>
CC: "www-style@w3.org" <www-style@w3.org>
Message-ID: <90103ABF-C327-47E6-9AA6-6C4CAF727DF4@adobe.com>

On Dec 4, 2014, at 9:29 AM, Anton Tsyganenko <anton-tsyganenko@yandex.ru> wrote:

> Please add an ability to use background-color in any background layer, like this:
> background: rgba(0, 0, 0, 0.5), url("background.png")
> It can be useful to darken or lighten a background.

This will be possible with the 'image()’ function defined in CSS3 Images[1].

	background: image(rgba(0,0,0,0.5)), url(‘background.png’);

Greetings,
Dirk

[1] http://dev.w3.org/csswg/css-images-3/#image-notation
Received on Monday, 8 December 2014 20:06:57 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:49 UTC