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

Re: SVG Masking under FXTF

From: Dirk Schulze <dschulze@adobe.com>
Date: Tue, 31 Jul 2012 15:46:57 -0700
To: Rik Cabanier <cabanier@gmail.com>
CC: "www-svg@w3.org list" <www-svg@w3.org>, "Edward O'Connor" <eoconnor@apple.com>
Message-ID: <16CCF8B9-9671-4DE1-BEBC-5AAF723917FC@adobe.com>

On Jul 31, 2012, at 3:42 PM, Rik Cabanier <cabanier@gmail.com> wrote:

> We could introduce new CSS keywords that are similar to the background syntax [1] and use them as masks.
> Setting a 'mask-' property would establish a new stacking context.
> 
> There would also be a need for a new keyword like 'mask-style' so you can specify auto, luminosity or alpha.
We call it maskType (mask-type in a dash version) attribute on SVG 2 at the moment. But yes, that would be great.

Dirk

> 
> Rik
> 
> 1:  http://www.w3.org/TR/css3-background/#the-background-color 
> 
> On Tue, Jul 31, 2012 at 3:18 PM, Dirk Schulze <dschulze@adobe.com> wrote:
> I just want to ad the blog post on Safari blog to -webkit-mask: http://www.webkit.org/blog/181/css-masks/
> 
> If mask would take an URI as well and can differ between luminance and alpha mask, I think it could be quite useful for both the HTML and SVG world.
> 
> Greetings,
> Dirk
> 
> On Jul 31, 2012, at 2:56 PM, Dirk Schulze <dschulze@adobe.com> wrote:
> 
> > Hi Rik,
> >
> > On Jul 31, 2012, at 2:18 PM, Rik Cabanier <cabanier@gmail.com> wrote:
> >
> >> Hi Dirk,
> >>
> >> do you think this makes sense? It seems like the model are very different (painter's algorithm vs css box model) so the solution will most likely not be the same.
> >> Or is it your intention to describe masking generally and then say how it applies to SVG and HTML like we did for the compositing spec?
> > I think it absolutely makes sense. This is quite similar to what we have in Filter Effects. The other way around it doesn't make sense to have to different specs that try to address the same use case. Both done with a masking property (even if it might be called different). You can already try it in Firefox right now.
> >
> >>
> >> I think's Tab's -element() syntax will be more compatible with masking than what SVG currently has.
> > This is a different approach and it seems to be very interesting in the context of SVG as well (as paint sever for instance). However, at the moment it has noting to do with masking. Masks can take element() as input image and it is planned to do so.
> >
> > Greetings,
> > Dirk
> >
> >>
> >> Rik
> >>
> >> On Tue, Jul 31, 2012 at 1:47 PM, Dirk Schulze <dschulze@adobe.com> wrote:
> >> Hi SVG folks,
> >>
> >> I would like to discuss moving the SVG Masking part to a new spec, just like we did for Filter Effects and CSS Transforms. The CSS WG is looking into specifying masking as well. Because the last draft of SVG 2 does a lot of changes to masking which seem to be helpful on HTML as well, it might be the time to discuss these changes with the CSS WG. I would like to avoid repeating the same mistake on masking that was done on transforms initially.
> >>
> >> I add Ted in the CC list, since he wanted to look in specifying masking for the CSS WG.
> >>
> >> Greetings,
> >> Dirk
> >>
> >>
> >>
> >
> >
> 
> 
Received on Tuesday, 31 July 2012 22:47:24 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:51 GMT