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

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

From: Rik Cabanier <cabanier@gmail.com>
Date: Thu, 26 Dec 2013 17:33:35 -0800
Message-ID: <CAGN7qDAxjtrLo20k3gAg19j5VMXd+nTA18ZS_6JHywi3gUFU2Q@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: Simon Fraser <smfr@me.com>, David <david.email@ymail.com>, www-style list <www-style@w3.org>
On Thu, Dec 26, 2013 at 2:39 PM, Tab Atkins Jr. <jackalmage@gmail.com>wrote:

> On Mon Dec 23 2013 at 11:38:37 PM, Simon Fraser <smfr@me.com> wrote:
>
>> 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.
>>
>
> This already exists, in the form of cross-fade().  The default value of
> the second argument is "transparent", so "cross-fade(url(foo.png) 50%)"
> will give you a half-transparent image.
>

So, we have 2 ways of controlling the opacity of a background image
(cross-fade and filter(..., opacity())) but they both suffer from the issue
that you have to repeat all the CSS images to make the transition/animation
work.

Alan, David, are you OK with this?
Received on Friday, 27 December 2013 01:34:04 UTC

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