OLD | NEW |
(Empty) | |
| 1 <svg viewBox="-10 -10 280 220" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="h
ttp://www.w3.org/1999/xlink" onload="runRepaintTest()"> |
| 2 <script xlink:href="../../fast/repaint/resources/repaint.js"></script> |
| 3 <script> |
| 4 <![CDATA[ |
| 5 function repaintTest() { |
| 6 document.getElementById('t1').setAttribute("paint-order"
, "stroke fill"); |
| 7 document.getElementById('t2').style.paintOrder = "normal
"; |
| 8 document.getElementById('t3').setAttribute("paint-order"
, "markers fill stroke"); |
| 9 document.getElementById('t4').setAttribute("color", "cya
n"); |
| 10 } |
| 11 ]]> |
| 12 </script> |
| 13 |
| 14 <defs> |
| 15 <marker id="m" refX="5" refY="5" viewBox="0 0 10 10" overflow="v
isible"> |
| 16 <circle cx="5" cy="5" r="3" fill="black" stroke="black"
fill-opacity="0.5"/> |
| 17 </marker> |
| 18 <svg id="poly" viewBox="-10 -10 420 420"> |
| 19 <polygon points="50 50 50 350 350 350 250 200" fill="blu
e" stroke="lime" stroke-width="50" style="marker: url(#m)" stroke-opacity="0.5"/
> |
| 20 </svg> |
| 21 <marker id="m2" refX="5" refY="5" viewBox="0 0 10 10" overflow="
visible"> |
| 22 <circle id="t4" cx="5" cy="5" r="3" fill="currentColor"
stroke="currentColor" fill-opacity="0.5"/> |
| 23 </marker> |
| 24 <svg id="poly2" viewBox="-10 -10 420 420"> |
| 25 <polygon points="50 50 50 350 350 350 250 200" fill="blu
e" stroke="lime" stroke-width="50" style="marker: url(#m2)" stroke-opacity="0.5"
/> |
| 26 </svg> |
| 27 </defs> |
| 28 |
| 29 <g transform="translate(0,50)"> |
| 30 <use id="t1" xlink:href="#poly" width="50" height="50" x="0"/> |
| 31 <use id="t2" xlink:href="#poly" style="paint-order: markers stro
ke" width="50" height="50" x="50"/> |
| 32 |
| 33 <svg viewBox="-10 -10 420 420" width="50" height="50" x="100"> |
| 34 <polygon id="t3" points="50 50 50 350 350 350 250 200" f
ill="blue" stroke="lime" stroke-width="50" style="marker: url(#m)" stroke-opacit
y="0.5"/> |
| 35 </svg> |
| 36 |
| 37 <use xlink:href="#poly2" width="50" height="50" x="150"/> |
| 38 </g> |
| 39 </svg> |
OLD | NEW |