Bug 1122578, part 2 - Test start point and direction of dashed stroking on SVG rect. r=longsonr

--HG--
rename : layout/reftests/svg/stroke-dasharray-02.svg => layout/reftests/svg/stroke-dasharray-03.svg
This commit is contained in:
Jonathan Watt 2015-01-18 11:43:29 +00:00
parent fc78f23587
commit be5ad9913e
2 changed files with 21 additions and 0 deletions

View File

@ -332,6 +332,7 @@ HTTP(..) == text-scale-03.svg text-scale-03-ref.svg
== text-stroke-scaling-01.svg text-stroke-scaling-01-ref.svg
== stroke-dasharray-01.svg stroke-dasharray-01-ref.svg
== stroke-dasharray-02.svg pass.svg
== stroke-dasharray-03.svg pass.svg
== stroke-dasharray-and-pathLength-01.svg pass.svg
== stroke-dasharray-and-text-01.svg stroke-dasharray-and-text-01-ref.svg
== stroke-dashoffset-01.svg pass.svg

View File

@ -0,0 +1,20 @@
<!--
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 rect</title>
<!-- https://bugzilla.mozilla.org/show_bug.cgi?id=1122578 -->
<rect width="100%" height="100%" fill="lime"/>
<rect x="20" y="20" width="100" height="60" fill="none" stroke="red" stroke-width="10" stroke-dasharray="120,10000"/>
<path d="M20,20 h100 v20" fill="none" stroke="lime" stroke-width="10"/>
<rect x="20" y="100" width="100" height="60" fill="none" stroke="red" stroke-width="10" stroke-dasharray="120,10000" rx="10" ry="10"/>
<path d="M30,100 h80 a10,10 0 0 1 10,10 v25" fill="none" stroke="lime" stroke-width="14"/>
</svg>

After

Width:  |  Height:  |  Size: 782 B