W3C home > Mailing lists > Public > www-style@w3.org > November 2012

Re: [css-masking] 'mask' with resource and image references (was: [css4-images] support for SVG Paint Servers without element())

From: Robert O'Callahan <robert@ocallahan.org>
Date: Wed, 7 Nov 2012 08:35:24 +1300
Message-ID: <CAOp6jLahGyD8OdBpe4W1fkpo7hVb_1qtbe7TxH-O770OM4KVjg@mail.gmail.com>
To: Dirk Schulze <dschulze@adobe.com>
Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, "www-style@w3.org list" <www-style@w3.org>
On Tue, Nov 6, 2012 at 2:56 PM, Dirk Schulze <dschulze@adobe.com> wrote:

> Example:
>
> mask: url(image.svg#id);
>
> The URL needs to be checked if valid. In this case it needs o be checked
> if it is an SVG image. If it is, use SVG masking (with <mask>).
>

Since the URL has a fragment, this will always be treated as an SVG mask
with an external resource document containing a <mask> element. There is no
need to determine whether the image is an SVG image.

Second example:
>
> mask: url(image.svg#id), url(image2.svg#id);
>
> Both references should be treated as SVG resources (references to SVG
> mask). But in this case the construct is parsed as an shorthand for
> 'mask-image'. All that makes parsing more difficult.


Why? The value of mask-image is "url(image.svg#id), url(image2.svg#id)".
Both are interpreted as references to SVG <mask> elements. There's no
problem.

Rob
-- 
Jesus called them together and said, “You know that the rulers of the
Gentiles lord it over them, and their high officials exercise authority
over them. Not so with you. Instead, whoever wants to become great among
you must be your servant, and whoever wants to be first must be your
slave — just
as the Son of Man did not come to be served, but to serve, and to give his
life as a ransom for many.” [Matthew 20:25-28]
Received on Tuesday, 6 November 2012 19:35:53 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:02 GMT