Sorry, no, the spec says the content property only supports generated text content, no html, svg stuff or tags at all.
Yes, you can! Just experienced it and it works great, it's awesome! It still does not work with html, but it works with svgs.
In my index.html, I have:
<div id="test" style="content: url(test.svg); width: 200px; height: 200px;"></div>
And my test.svg looks like this:
<svg xmlns="http://www.w3.org/2000/svg" version="1.1"> <circle cx="100" cy="50" r="40" stroke="black" stroke-width="2" fill="red" /> <polyline points="20,20 40,25 60,40 80,120 120,140 200,180" style="fill:none;stroke:black;stroke-width:3" /> </svg>
dezman Oct 08 '13 at 18:26 2013-10-08 18:26
source share