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

Re: [css4-images] support for SVG Paint Servers without element()

From: Robert O'Callahan <robert@ocallahan.org>
Date: Thu, 25 Oct 2012 10:48:49 +1300
Message-ID: <CAOp6jLZ73XUHz8ehAj-Y4mWFUFwA26-T=8705S4uQ0xikxhjzw@mail.gmail.com>
To: Dirk Schulze <dschulze@adobe.com>
Cc: "www-style@w3.org list" <www-style@w3.org>
On Wed, Oct 24, 2012 at 3:54 AM, Dirk Schulze <dschulze@adobe.com> wrote:

> On Oct 23, 2012, at 5:17 AM, "Robert O'Callahan" <robert@ocallahan.org>
> wrote:
>
> On Sun, Oct 14, 2012 at 2:51 PM, Dirk Schulze <dschulze@adobe.com> wrote:
>
>> As conclusion, I wonder why CSS4 Images can't support SVG fragment
>> identifiers directly:
>>
>> background-image: url(image.svg#gradient1);
>>
>
> The code paths to load an SVG document as an image and an SVG document to
> provide an external resource such as a paint server are quite different, in
> Gecko at least. We need to know when we start loading the document which
> situation we're in. With your syntax, we can't know until the document is
> loaded. We use the presence of element() to signal that we're in the
> external resource situation.
>
> I wonder how you deal with fragments on SVG images then.
>
> url(test.svg#anyID) works on Firefox. Do you already assume that you may
> just render the referenced element? And that this element is a graphical
> element?
>

We load it as an image, not as an external resource document, and handle
the fragment reference from there.

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 Wednesday, 24 October 2012 21:49:18 GMT

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