OLD | NEW |
(Empty) | |
| 1 <!-- |
| 2 Any copyright is dedicated to the Public Domain. |
| 3 http://creativecommons.org/publicdomain/zero/1.0/ |
| 4 --> |
| 5 <svg xmlns="http://www.w3.org/2000/svg"> |
| 6 <title>Test that marker orientation is correct at the end of arcs when |
| 7 orient="auto-start-reverse" is used</title> |
| 8 <!-- https://bugzilla.mozilla.org/show_bug.cgi?id=769115 --> |
| 9 |
| 10 <marker id="m1" markerWidth="40" markerHeight="40" refX="20" refY="20" |
| 11 markerUnits="userSpaceOnUse" orient="auto-start-reverse" fill="blue"> |
| 12 <rect x="5" y="15" width="22" height="10"/> |
| 13 <path d="M 25,10 35,20 25,30 z"/> |
| 14 </marker> |
| 15 |
| 16 <marker id="m2" markerWidth="40" markerHeight="40" refX="20" refY="20" |
| 17 markerUnits="userSpaceOnUse" orient="auto-start-reverse" fill="red"> |
| 18 <rect x="5" y="15" width="22" height="10"/> |
| 19 <path d="M 25,10 35,20 25,30 z"/> |
| 20 </marker> |
| 21 |
| 22 <g fill="none"> |
| 23 <!-- arcs that go from the left of the circle to... --> |
| 24 <g marker-end="url(#m2)"> |
| 25 <!-- ...90 degrees anti-clockwise --> |
| 26 <path d="M100,100 A 50,50 0 1 0 150,50" marker-start="url(#m1)"/> |
| 27 <!-- ...180 degrees anti-clockwise --> |
| 28 <path d="M100,100 A 50,50 0 0 0 200,100"/> |
| 29 <!-- ...270 degrees anti-clockwise --> |
| 30 <path d="M100,100 A 50,50 0 0 0 150,150"/> |
| 31 </g> |
| 32 |
| 33 <!-- arcs that go from the left of the circle to... --> |
| 34 <g marker-end="url(#m2)" transform="translate(250,0)"> |
| 35 <!-- ...90 degrees clockwise --> |
| 36 <path d="M100,100 A 50,50 0 0 1 150,50" marker-start="url(#m1)"/> |
| 37 <!-- ...180 degrees clockwise --> |
| 38 <path d="M100,100 A 50,50 0 1 1 200,100"/> |
| 39 <!-- ...270 degrees clockwise --> |
| 40 <path d="M100,100 A 50,50 0 1 1 150,150"/> |
| 41 </g> |
| 42 |
| 43 <!-- arcs that go from the right of the circle to... --> |
| 44 <g marker-end="url(#m2)" transform="translate(0,250)"> |
| 45 <!-- ...90 degrees anti-clockwise --> |
| 46 <path d="M200,100 A 50,50 0 0 1 150,150" marker-start="url(#m1)"/> |
| 47 <!-- ...180 degrees anti-clockwise --> |
| 48 <path d="M200,100 A 50,50 0 0 1 100,100"/> |
| 49 <!-- ...270 degrees anti-clockwise --> |
| 50 <path d="M200,100 A 50,50 0 1 1 150,50"/> |
| 51 </g> |
| 52 |
| 53 <!-- arcs that go from the right of the circle to... --> |
| 54 <g marker-end="url(#m2)" transform="translate(250,250)"> |
| 55 <!-- ...90 degrees anti-clockwise --> |
| 56 <path d="M200,100 A 50,50 0 0 0 150,50" marker-start="url(#m1)"/> |
| 57 <!-- ...180 degrees anti-clockwise --> |
| 58 <path d="M200,100 A 50,50 0 1 0 100,100"/> |
| 59 <!-- ...270 degrees anti-clockwise --> |
| 60 <path d="M200,100 A 50,50 0 1 0 150,150"/> |
| 61 </g> |
| 62 </g> |
| 63 |
| 64 </svg> |
OLD | NEW |