OLD | NEW |
| (Empty) |
1 <?xml version="1.0" encoding="UTF-8"?> | |
2 <svg xmlns="http://www.w3.org/2000/svg"> | |
3 <defs> | |
4 <linearGradient id="myGradient" | |
5 x1="0%" y1="0%" | |
6 x2="0%" y2="100%" | |
7 spreadMethod="pad"> | |
8 <stop offset="0%" stop-color="#00cc00" stop-opacity="1"/> | |
9 <stop offset="100%" stop-color="#006600" stop-opacity="1"/> | |
10 </linearGradient> | |
11 </defs> | |
12 <g stroke="blue"> | |
13 <rect width="100" height="100" fill="none" stroke="url(#myGradie
nt)"/> | |
14 <rect width="100" height="100" fill="none" stroke="url(#non-exis
tent-uri)"/> | |
15 </g> | |
16 <g fill="black"> | |
17 <text x="10" y="130">The above stroke of rect should be BLUE.</tex
t> | |
18 <text x="10" y="150">SVG 1.1 FULL says there should be a "highly p
erceivable error" message when an invalid URI is used.</text> | |
19 <text x="10" y="170">Browsers don't display such an error, instead
use some sort of fill-fallback.</text> | |
20 <text x="10" y="190">If there's an non-existent uri, but no fallba
ck specified, the stroke of the object is inherited from parent object.</text> | |
21 <text x="10" y="210">This has recently been changed in SVG 1.1 2nd
edition. Our result matches Opera now.</text> | |
22 </g> | |
23 </svg> | |
24 | |
OLD | NEW |