layout/reftests/svg/marker-orientation-02.svg

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

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

mercurial