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

Re: CSS background-image reference to inline SVG

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 4 Feb 2013 15:21:00 -0800
Message-ID: <CAAWBYDC5y6hM1JfjBcd4bSjutTBehUSV5jNjCYBGsD0ZE-MjZA@mail.gmail.com>
To: Roman Liutikov <roman01la@romanliutikov.com>
Cc: www-svg <www-svg@w3.org>
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.

Received on Monday, 4 February 2013 23:21:48 UTC

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