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

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 8 Dec 2014 13:29:20 -0800
Message-ID: <CAAWBYDCrWBtttRSwWRHcDTaQ4AjVRPZnA2cx+fu70ZRTnHmfgQ@mail.gmail.com>
To: Anton Tsyganenko <anton-tsyganenko@yandex.ru>
Cc: www-style list <www-style@w3.org>
On Thu, Dec 4, 2014 at 12: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.

Once browsers support the image() function
<http://dev.w3.org/csswg/css-images-3/#color-images> you'll be able to
generate solid-color images easily, which has the same effect.

~TJ
Received on Monday, 8 December 2014 21:30:08 UTC

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