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

Re: Concern about -webkit-mask

From: Dirk Schulze <dschulze@adobe.com>
Date: Wed, 18 Apr 2012 15:46:47 -0700
To: Rik Cabanier <cabanier@gmail.com>
CC: "robert@ocallahan.org" <robert@ocallahan.org>, John Daggett <jdaggett@mozilla.com>, "Tab Atkins Jr." <jackalmage@gmail.com>, www-style list <www-style@w3.org>
Message-ID: <663251A8-8C25-4F6D-811F-0CC5870080E8@adobe.com>

On Apr 18, 2012, at 12:34 PM, Rik Cabanier wrote:

> -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.
No, it is not similar. -webkit-mask-image is just compositing without the intermediate step of luminance.

Dirk

> 
> 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 22:47:23 GMT

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