layout/reftests/svg/stroke-dasharray-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
michael@0 7 <title>Test the start point and direction of dashing on circle and ellipse</title>
michael@0 8
michael@0 9 <!-- https://bugzilla.mozilla.org/show_bug.cgi?id=944704 -->
michael@0 10
michael@0 11 <rect width="100%" height="100%" fill="lime"/>
michael@0 12
michael@0 13 <!-- Test circle element dashes cover two red circles -->
michael@0 14 <circle cx="100" cy="62" r="8" fill="red"/>
michael@0 15 <circle cx="66" cy="98" r="8" fill="red"/>
michael@0 16 <circle cx="50" cy="50" r="50" fill="none" stroke="lime" stroke-width="30" stroke-dasharray="25 25 25 100000"/>
michael@0 17
michael@0 18 <!-- Sanity test to check that two circles cover circle element dashes (i.e. that the previous check didn't pass because the stroke was solid) -->
michael@0 19 <circle cx="200" cy="50" r="50" fill="none" stroke="red" stroke-width="10" stroke-dasharray="10 40 10 100000"/>
michael@0 20 <circle cx="250" cy="56" r="11" fill="lime"/>
michael@0 21 <circle cx="223" cy="96" r="11" fill="lime"/>
michael@0 22
michael@0 23 <!-- Test ellipse element dashes cover two red circles -->
michael@0 24 <circle cx="95" cy="211" r="8" fill="red"/>
michael@0 25 <circle cx="47" cy="225" r="8" fill="red"/>
michael@0 26 <ellipse cx="50" cy="200" rx="50" ry="25" fill="none" stroke="lime" stroke-width="25" stroke-dasharray="25 25 25 100000"/>
michael@0 27
michael@0 28 <!-- Sanity test to check that two circles cover ellipse element dashes (i.e. that the previous check didn't pass because the stroke was solid) -->
michael@0 29 <ellipse cx="200" cy="200" rx="50" ry="25" fill="none" stroke="red" stroke-width="10" stroke-dasharray="10 40 10 100000"/>
michael@0 30 <circle cx="250" cy="205" r="11" fill="lime"/>
michael@0 31 <circle cx="206" cy="225" r="11" fill="lime"/>
michael@0 32
michael@0 33 </svg>

mercurial