W3C home > Mailing lists > Public > www-svg@w3.org > February 2013

Re: CSS background-image reference to inline SVG

From: Dirk Schulze <dschulze@adobe.com>
Date: Mon, 4 Feb 2013 16:46:35 -0800
To: "Tab Atkins Jr." <jackalmage@gmail.com>
CC: Roman Liutikov <roman01la@romanliutikov.com>, www-svg <www-svg@w3.org>
Message-ID: <024A80FA-EC36-44E3-B324-63A9C76833A5@adobe.com>

On Feb 5, 2013, at 10:21 AM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:

> On Mon, Feb 4, 2013 at 12:02 PM, Roman Liutikov
> <roman01la@romanliutikov.com> wrote:
>> I'm working on a project where a lot of SVG graphics are required and I
>> really like the idea of using inline SVG. What I'm looking for is an ability
>> to use the inline SVG with CSS background-image property by linking to its
>> id:
>>   background-image: url(#myShape);
>> Data URI is great, but I don't think that somebody would like to mess the
>> code with numbers of lines for the only image.
> This *should* already by possible. Where it's not, please file bugs on browsers.

I think it was proposed (and maybe decided) to make this possible but not specified yet. Am I wrong? Mozilla implemented the element() function for this purpose.


> ~TJ
Received on Tuesday, 5 February 2013 00:47:14 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:40 UTC