Re: CSS background-image reference to inline SVG

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.

Greetings,
Dirk

> 
> ~TJ
> 

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