OLD | NEW |
(Empty) | |
| 1 <!-- Test for crbug.com/235256: this test passes if only |
| 2 the top left green rect is shown. |
| 3 Modified from the original example here, |
| 4 http://www.w3.org/TR/SVG/images/struct/Use02.svg --> |
| 5 <html> |
| 6 <body> |
| 7 <svg width="10cm" height="3cm" viewBox="0 0 100 30"> |
| 8 <defs> |
| 9 <symbol id="MySymbol"> |
| 10 <desc>MySymbol - four rectangles in a grid</desc> |
| 11 <rect x="1" y="1" width="8" height="8" fill="green"/> |
| 12 <rect x="11" y="1" width="8" height="8" fill="red"/> |
| 13 <rect x="1" y="11" width="8" height="8" fill="red"/> |
| 14 <rect x="11" y="11" width="8" height="8" fill="red"/> |
| 15 </symbol> |
| 16 </defs> |
| 17 <use x="0" y="0" xlink:href="#MySymbol" > |
| 18 <set attributeName="width" to="10" begin="0s" fill="freeze" /> |
| 19 <set attributeName="height" to="10" begin="0s" fill="freeze" /> |
| 20 </use> |
| 21 </svg> |
| 22 </body> |
OLD | NEW |