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

Re: Ambiguities in fill:url() / stroke:url() syntax

From: Dirk Schulze <dschulze@adobe.com>
Date: Mon, 29 Oct 2012 03:43:55 -0700
To: "robert@ocallahan.org" <robert@ocallahan.org>
CC: "Tab Atkins Jr." <jackalmage@gmail.com>, www-svg <www-svg@w3.org>, www-style <www-style@w3.org>
Message-ID: <34D4F628-29A0-4FD2-99A8-890A82B3400F@adobe.com>
I forgot to add the example for testing: http://jsfiddle.net/24DNn/41/

Greetings,
Dirk

On Oct 29, 2012, at 11:42 AM, Dirk Schulze <dschulze@adobe.com> wrote:

> 
> On Oct 29, 2012, at 10:24 AM, Robert O'Callahan <robert@ocallahan.org> wrote:
> 
>> On Mon, Oct 29, 2012 at 5:45 PM, Dirk Schulze <dschulze@adobe.com> wrote:
>>> On Oct 29, 2012, at 5:07 AM, Robert O'Callahan <robert@ocallahan.org> wrote: 
>>> I kind of like the proposal to add a new media fragment. But first, I don't think that it will be as easy as the current way to do SVG stacks (the current version just works because of selector pseudo elements, which would need to be simulated) and after all, even WebKit supports SVG stacks. You can not use it with CSS Image values so, but you can use it in combination with the <object> tag. One specification already makes use of that, Filter Effects [1].
>>> 
>>> And there already exists an quite popular tool to create SVG stacks: https://github.com/preciousforever/SVG-Stacker
>>> The tool can be changed. But content that was created with it so far, just stops working.
>> 
>> Erik Dahlstrom (I think) pointed out in my blog post that existing SVG stacks using <img> and <object>, including your Filter Effects spec, would not be affected by this. Only SVG stacks referenced by 'background:url()' would be affected and apparently that only works in Firefox today.
> 
> That is not fully correct. IE 9 as well as Firefox implement it correctly and Operas support is a bit buggy (for CSS Image).
> 
> Does it mean that we have two different behaviors on <img>, <object> and <iframe> on the one side and CSS Images on the other? That sounds worst.
> 
>> (Although http://preciousforever.github.com/SVG-Stacker/examples/wikipedia/commons/stack/stack-demo-css-hack.html does have some polyfill that uses background:url() in Firefox.) So maybe the compat issue isn't that bad.
> 
> I would like to see a proposal first before we can continue discussing on it further. And we have not done the research if ::target is the only pseudo element or use case for SVG fragments with influence on the painted result.
> 
> Greetings,
> Dirk
> 
>> 
>> 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 Monday, 29 October 2012 10:44:27 GMT

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