W3C home > Mailing lists > Public > www-style@w3.org > April 2012

Re: Concern about -webkit-mask

From: Rik Cabanier <cabanier@gmail.com>
Date: Wed, 18 Apr 2012 12:34:56 -0700
Message-ID: <CAGN7qDDYGxyC05Kwz9-7j1+mLrSyRW9MKX4pu0pA5A01Jfp5Vg@mail.gmail.com>
To: robert@ocallahan.org
Cc: John Daggett <jdaggett@mozilla.com>, "Tab Atkins Jr." <jackalmage@gmail.com>, www-style list <www-style@w3.org>
-webkit-mask-image is identical to SVG's definition of mask: convert RGB to
luminance and multiply with the alpha.
Looking at all the keywords to support this property [1], it seems that
more is needed to control the mask than just referring to a URI.

Rik

[1]:  http://www.webkit.org/blog/181/css-masks/

On Tue, Apr 17, 2012 at 10:50 PM, Robert O'Callahan <robert@ocallahan.org>wrote:

> SVG 'mask' should 'just work' on HTML, the same way we've defined SVG
> 'filter' to 'just work' on HTML. SVG masks have the unfortunate properties
> that they require an external mask element and they use luminance instead
> of alpha to define the mask operation, so I think something like
> -webkit-mask is also useful. Someone should look at the ways people are
> using -webkit-mask, then ideally we can extend SVG 'mask' with enough of
> the -webkit-mask syntax to cover that usage (and for that syntax, mask
> using alpha instead of luminance); if not I guess we'll have to define a
> new property with the functionality of -webkit-mask.
>
> Rob
> --
> “You have heard that it was said, ‘Love your neighbor and hate your
> enemy.’ But I tell you, love your enemies and pray for those who persecute
> you, that you may be children of your Father in heaven. ... If you love
> those who love you, what reward will you get? Are not even the tax
> collectors doing that? And if you greet only your own people, what are you
> doing more than others?" [Matthew 5:43-47]
>
>
Received on Wednesday, 18 April 2012 19:35:29 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:52 GMT