Re: [css-masking] new value for 'mask-clip'

On Sat, Oct 27, 2012 at 12:19 AM, Dirk Schulze <dschulze@adobe.com> wrote:

> On Oct 26, 2012, at 11:23 AM, Robert O'Callahan <robert@ocallahan.org>
> wrote:
> >> On Fri, Oct 26, 2012 at 9:19 PM, Dirk Schulze <dschulze@adobe.com>
> wrote:
> >> The ellipse defined by this image would clip on the border box of the
> container. In absolute coordinates: cx=100, cy=100, rx=100, ry=100. Even
> with a value 'mask-clip: none', the ellipse would be the size of the
> container and clip to the border box of the container. But in the case
> above, you may want the ellipse mask the the whole group and not just the
> container.
> >
> > In CSS you can't do anything with that "whole group box". It doesn't
> really exist as a concept. (Except, arguably, influencing what you can
> scroll to in a scrollable container.) I'm not sure we want to introduce it
> just for the sake of masking here.
>
> That is not correct, we do it for Filter Effects already. And even Firefox
> does it for mask, clip-path, filter. It is the union of all border boxes of
> all descendants and the element itself, like the rect for
> getComputedBoundingRect.
>

OK, good point. :-)

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 Saturday, 27 October 2012 01:06:58 UTC