W3C home > Mailing lists > Public > www-svg@w3.org > July 2012

Re: mask: luminance or alpha

From: Rik Cabanier <cabanier@gmail.com>
Date: Tue, 31 Jul 2012 14:27:08 -0700
Message-ID: <CAGN7qDDz-jyzMzAoYuNnAYhjYtRJC7O3H5Mcz+Qw0eJhW9Z9pw@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: Brian Birtles <birtles@gmail.com>, www-svg@w3.org
So, <auto> means 'alpha' if you point to an image and 'luminosity' if you
point to vector data?
I think that's reasonable and similar to PDF's soft mask images.

Rik

On Tue, Jul 31, 2012 at 2:16 PM, Tab Atkins Jr. <jackalmage@gmail.com>wrote:

> On Mon, Jul 30, 2012 at 6:37 PM, Brian Birtles <birtles@gmail.com> wrote:
> > For (2) we decided to make 'auto' behave as alpha since it seems like a
> lot
> > of people want to refer to a raster image as their mask and use the alpha
> > values as the mask values. I'm pretty sure that's how -webkit-mask works.
>
> This is another decent argument.  It sucks that -webkit-mask was
> defined without regard to the SVG mask property, but we're likely
> stuck with it.  It default to alpha when referring to <image> types,
> so it would be convenient if we could merge the two by defining the
> SVG property to default to alpha when referring to <image>s, at least.
>
> ~TJ
>
>
Received on Tuesday, 31 July 2012 21:27:35 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:51 GMT