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

Re: mask-type property

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 20 Sep 2012 00:33:55 +0200
Message-ID: <CAAWBYDDyp5oLmfnvxXDgQav0zZwsA-w591QhRKUkXKBERAhfcg@mail.gmail.com>
To: Cameron McCormack <cam@mcc.id.au>
Cc: SVG public list <www-svg@w3.org>
On Thu, Sep 20, 2012 at 12:02 AM, Cameron McCormack <cam@mcc.id.au> wrote:
> We discussed at the F2F this week the 'mask-type' property, and we decided
> not to allow it to be specified on arbitrary elements to affect how a mask
> that applies to that element would be interpreted.  (Instead, we have
> "luminance" and "alpha" keywords in the 'mask' property itself.)  Instead we
> decided to make 'mask-type' only apply to <mask>.  This is in place of the
> current maskType="" attribute on <mask>.
> I was just implementing this, and I wondered whether it really makes sense
> for it to be a property.  I don't think there are really any use cases for
> using style sheets to change how a <mask> element is interpreted.  I think
> therefore we should stay with a plain attribute on <mask>, but perhaps call
> it something other than maskType="", just to avoid the camel-casing issues
> that Simon brought up.  I think type="" would work fine.

My justification for it was setting all of the <mask>s in your page to
be alpha.  Without a property, you have to explicitly add an attribute
to every one of them.

Received on Wednesday, 19 September 2012 22:34:42 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:37 UTC