Hi, I have a background image set to SVG file:
And here's ribbon.svg:
According to the viewBox="0 0 40 120" attribute value, SVG picture (which is smaller than 40 x 120px) should be scaled to the viewport of the containing element and this happens in all browsers, except Prince — which is not actually browser, but pretending to be
So I wonder — are you going to support viewBox attribute for SVG? It is really useful for integration SVG in CSS.
.slide SECTION:before {
position:absolute;
top:0;
right:120px;
width:40px;
height:120px;
background:url(ribbon.svg) no-repeat;
content:'';
}
And here's ribbon.svg:
<?xml version="1.0" encoding="utf-8"?>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 120">
<polygon fill="#CC0000" points="0,0 40,0 40,120 20,100 0,120"/>
</svg>
According to the viewBox="0 0 40 120" attribute value, SVG picture (which is smaller than 40 x 120px) should be scaled to the viewport of the containing element and this happens in all browsers, except Prince — which is not actually browser, but pretending to be
So I wonder — are you going to support viewBox attribute for SVG? It is really useful for integration SVG in CSS.