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

     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">
     7   <title>Test the start point and direction of dashing on circle and ellipse</title>
     9   <!-- https://bugzilla.mozilla.org/show_bug.cgi?id=944704 -->
    11   <rect width="100%" height="100%" fill="lime"/>
    13   <!-- Test circle element dashes cover two red circles -->
    14   <circle cx="100" cy="62" r="8" fill="red"/>
    15   <circle cx="66" cy="98" r="8" fill="red"/>
    16   <circle cx="50" cy="50" r="50" fill="none" stroke="lime" stroke-width="30" stroke-dasharray="25 25 25 100000"/>
    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) -->
    19   <circle cx="200" cy="50" r="50" fill="none" stroke="red" stroke-width="10" stroke-dasharray="10 40 10 100000"/>
    20   <circle cx="250" cy="56" r="11" fill="lime"/>
    21   <circle cx="223" cy="96" r="11" fill="lime"/>
    23   <!-- Test ellipse element dashes cover two red circles -->
    24   <circle cx="95" cy="211" r="8" fill="red"/>
    25   <circle cx="47" cy="225" r="8" fill="red"/>
    26   <ellipse cx="50" cy="200" rx="50" ry="25" fill="none" stroke="lime" stroke-width="25" stroke-dasharray="25 25 25 100000"/>
    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) -->
    29   <ellipse cx="200" cy="200" rx="50" ry="25" fill="none" stroke="red" stroke-width="10" stroke-dasharray="10 40 10 100000"/>
    30   <circle cx="250" cy="205" r="11" fill="lime"/>
    31   <circle cx="206" cy="225" r="11" fill="lime"/>
    33 </svg>

mercurial