summaryrefslogtreecommitdiffstats
path: root/layout/reftests/svg/stroke-dasharray-02.svg
diff options
context:
space:
mode:
authorMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
committerMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
commit5f8de423f190bbb79a62f804151bc24824fa32d8 (patch)
tree10027f336435511475e392454359edea8e25895d /layout/reftests/svg/stroke-dasharray-02.svg
parent49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff)
downloadUXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip
Add m-esr52 at 52.6.0
Diffstat (limited to 'layout/reftests/svg/stroke-dasharray-02.svg')
-rw-r--r--layout/reftests/svg/stroke-dasharray-02.svg48
1 files changed, 48 insertions, 0 deletions
diff --git a/layout/reftests/svg/stroke-dasharray-02.svg b/layout/reftests/svg/stroke-dasharray-02.svg
new file mode 100644
index 000000000..147498f4e
--- /dev/null
+++ b/layout/reftests/svg/stroke-dasharray-02.svg
@@ -0,0 +1,48 @@
+<!--
+ Any copyright is dedicated to the Public Domain.
+ http://creativecommons.org/publicdomain/zero/1.0/
+-->
+<svg xmlns="http://www.w3.org/2000/svg">
+
+ <title>Test the start point and direction of dashing on circle and ellipse</title>
+
+ <!-- https://bugzilla.mozilla.org/show_bug.cgi?id=944704 -->
+
+ <rect width="100%" height="100%" fill="lime"/>
+
+ <!-- Test circle element dashes cover two red circles -->
+ <circle cx="100" cy="62" r="8" fill="red"/>
+ <circle cx="66" cy="98" r="8" fill="red"/>
+ <circle cx="50" cy="50" r="50" fill="none" stroke="lime" stroke-width="30" stroke-dasharray="25 25 25 100000"/>
+
+ <!-- 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) -->
+ <circle cx="200" cy="50" r="50" fill="none" stroke="red" stroke-width="10" stroke-dasharray="10 40 10 100000"/>
+ <circle cx="250" cy="56" r="11" fill="lime"/>
+ <circle cx="223" cy="96" r="11" fill="lime"/>
+
+ <!-- Test ellipse element dashes cover two red circles -->
+ <circle cx="95" cy="211" r="8" fill="red"/>
+ <circle cx="47" cy="225" r="8" fill="red"/>
+ <ellipse cx="50" cy="200" rx="50" ry="25" fill="none" stroke="lime" stroke-width="25" stroke-dasharray="25 25 25 100000"/>
+
+ <!-- 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) -->
+ <ellipse cx="200" cy="200" rx="50" ry="25" fill="none" stroke="red" stroke-width="10" stroke-dasharray="10 40 10 100000"/>
+ <circle cx="250" cy="205" r="11" fill="lime"/>
+ <circle cx="206" cy="225" r="11" fill="lime"/>
+
+ <!-- https://bugzilla.mozilla.org/show_bug.cgi?id=1131264 -->
+ <!-- small circles take a different code path -->
+
+ <!-- Test circle element dashes cover two red circles -->
+ <circle cx="125" cy="325" r="8" fill="red"/>
+ <circle cx="50" cy="380" r="8" fill="red"/>
+ <circle cx="0" cy="0" r=".0008" fill="none" stroke="lime" stroke-width=".0003" stroke-dasharray=".0005 .0005 .0005 100"
+ transform="translate(50, 300) scale(1e5, 1e5)"/>
+
+ <!-- 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) -->
+ <circle cx="0" cy="0" r=".0008" fill="none" stroke="red" stroke-width=".0001" stroke-dasharray=".0001 .0005 .0001 100"
+ transform="translate(180, 300) scale(1e5, 1e5)"/>
+ <circle cx="260" cy="305" r="14" fill="lime"/>
+ <circle cx="235" cy="358" r="14" fill="lime"/>
+
+</svg>