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

CSS background-image reference to inline SVG

From: Roman Liutikov <roman01la@romanliutikov.com>
Date: Mon, 4 Feb 2013 22:02:09 +0200
Message-ID: <CANrv=+RcZk+EFh3+zqzPnGGSJs3yvHpV8_AO99QLvqJ35UMyYg@mail.gmail.com>
To: www-svg@w3.org
Hey guys!

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.


Received on Monday, 4 February 2013 20:29:03 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:31 UTC