1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/svg/stroke-dasharray-and-pathLength-01.svg Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,20 @@ 1.4 +<!-- 1.5 + Any copyright is dedicated to the Public Domain. 1.6 + http://creativecommons.org/publicdomain/zero/1.0/ 1.7 +--> 1.8 +<svg xmlns="http://www.w3.org/2000/svg"> 1.9 + <title>Test stroke-dasharray with pathLength and scaling</title> 1.10 + <rect width="100%" height="100%" fill="lime"/> 1.11 + <!-- 1.12 + Here we set the 'pathLength' to twice the actual length of the path, 1.13 + which should cause the stroke-dasharray values to be scaled down by one 1.14 + half. Visually, this should effectively cancel out the 2x scaling along 1.15 + the x-axis introduced by the 'transform' attribute. 1.16 + --> 1.17 + <path d="M0.5,10 L100.5,10" stroke="red" stroke-width="18" stroke-dasharray="18 22" pathLength="200" transform="scale(2,1)"/> 1.18 + <rect x="1" y="1" width="18" height="18" fill="lime"/> 1.19 + <rect x="41" y="1" width="18" height="18" fill="lime"/> 1.20 + <rect x="81" y="1" width="18" height="18" fill="lime"/> 1.21 + <rect x="121" y="1" width="18" height="18" fill="lime"/> 1.22 + <rect x="161" y="1" width="18" height="18" fill="lime"/> 1.23 +</svg>