blob: 01a16a61e2e016128845bea97dc807f96c49b43e [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient id="myGradient"
x1="0%" y1="0%"
x2="0%" y2="100%"
spreadMethod="pad">
<stop offset="0%" stop-color="#00cc00" stop-opacity="1"/>
<stop offset="100%" stop-color="#006600" stop-opacity="1"/>
</linearGradient>
</defs>
<g stroke="blue">
<rect width="100" height="100" fill="none" stroke="url(#myGradient)"/>
<rect width="100" height="100" fill="none" stroke="url(#non-existent-uri)"/>
</g>
<g fill="black">
<text x="10" y="130">The above stroke of rect should be BLUE.</text>
<text x="10" y="150">SVG 1.1 FULL says there should be a "highly perceivable error" message when an invalid URI is used.</text>
<text x="10" y="170">Browsers don't display such an error, instead use some sort of fill-fallback.</text>
<text x="10" y="190">If there's an non-existent uri, but no fallback specified, the stroke of the object is inherited from parent object.</text>
<text x="10" y="210">This has recently been changed in SVG 1.1 2nd edition. Our result matches Opera now.</text>
</g>
</svg>