Re: Specifying mask type for <mask> elements

On Sep 25, 2012, at 7:44 PM, "Brian Birtles" <bbirtles@mozilla.com> wrote:

> Hi,
> 
> Just a quick note about overriding mask-type. Although I haven't traced 
> the actual chain of resolutions that lead to this, I want to point out 
> that for the mask property we previously allowed:
> 
>  <mask id="a">
>    ...
>  </mask>
>  <path mask="url(#a) alpha" ... />
> 
> But now we don't. That is, you could override the mask-type of the 
> <mask> element by specifying it on the mask property, but now the 
> grammar doesn't allow that.
> 
> You can, of course, still specify the mask type when referring to pretty 
> much anything else (e.g. "url(a.svg) alpha", "linear-gradient(...) 
> luminance", "element(#linearGrad) luminance") but not <mask>.
> 
> Is that ok or should we allow overriding mask-type?
Given the fact that a <mask> can rarely be used for both, alpha and luminance mask, I would be in favor to not change the current grammar. Authors will define masks for one of the masking types.

Dirk

> 
> Best regards,
> 
> Brian Birtles
> 

Received on Wednesday, 26 September 2012 02:48:36 UTC