Re: SVG masking, maskType attribute still necessary?

On Aug 17, 2012, at 11:13 AM, Tab Atkins Jr. <> wrote:

> On Fri, Aug 17, 2012 at 11:04 AM, Dirk Schulze <> wrote:
>> Hi SVG WG,
>> We added the 'maskType' attribute to differ between alpha and luminance masks on the SVG 'mask' element. IIRC we didn't thought about extending the 'mask' property. Since we added the keywords 'alpha' and 'luminance' to the 'mask' property, it seems unnecessary to add a new attribute to the 'mask' element.
>> Do we want to revert the decision on adding this attribute?
> No.  The purpose of the maskType attribute is to signal what the mask
> is designed for.  Using the alpha of a mask designed for luminance is
> almost certainly a mistake and will likely produce bad and confusing
> results.
> The purpose of the keyword on the property is to signal whether to use
> alpha or luminance on things *other than* <mask> elements, because
> they can't signal what they were designed for.
Ah that makes sense.

> If I recall correctly, the keyword on the property is meant to have no
> effect on a <mask> element, because the maskType attribute is the
> source of truth there.
No, the property can override the attribute value. That is one reason why the default of the property is 'auto' [1].



> ~TJ

Received on Friday, 17 August 2012 20:47:45 UTC