layout/reftests/svg/non-scaling-stroke-02.svg

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/svg/non-scaling-stroke-02.svg	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,36 @@
     1.4 +<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" reftest-zoom="2" overflow="hidden">
     1.5 +<style type="text/css" >
     1.6 +rect {
     1.7 +  stroke-width: 15px;
     1.8 +  vector-effect: non-scaling-stroke;
     1.9 +}
    1.10 +</style>
    1.11 +<defs>
    1.12 +  <linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="100%">
    1.13 +    <stop offset="0" stop-color="blue"/>
    1.14 +    <stop offset="1" stop-color="yellow"/>
    1.15 +  </linearGradient>
    1.16 +  <linearGradient id="grad2" x1="100" y1="150" x2="200" y2="200" gradientUnits="userSpaceOnUse">
    1.17 +    <stop offset="0" stop-color="blue"/>
    1.18 +    <stop offset="1" stop-color="yellow"/>
    1.19 +  </linearGradient>
    1.20 +  <pattern id="pattern" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse" patternTransform="scale(4,0.5), skewX(45)">
    1.21 +    <rect x="0" y="0" width="10" height="10" fill="red"/>
    1.22 +    <rect x="10" y="0" width="10" height="10" fill="green"/>
    1.23 +    <rect x="0" y="10" width="10" height="10" fill="blue"/>
    1.24 +    <rect x="10" y="10" width="10" height="10" fill="yellow"/>
    1.25 +  </pattern>
    1.26 +  <rect id="rect" width="400" height="50" fill="none"/>
    1.27 +</defs>
    1.28 +
    1.29 +<g transform="translate(20,20)">
    1.30 +    <rect width="400" height="50" fill="none" stroke="url(#grad1)" transform="scale(0.25,1)"/>
    1.31 +</g>
    1.32 +
    1.33 +<rect width="400" height="50" fill="none" stroke="url(#grad2)" transform="translate(20,100) scale(0.25,1)"/>
    1.34 +
    1.35 +<use xlink:href="#rect" transform="translate(20, 180) scale(0.25,1)" stroke="url(#pattern)"/>
    1.36 +
    1.37 +<use xlink:href="#rect" x="40" y="80" transform="translate(10, 180) scale(0.25,1)" stroke="green"/>
    1.38 +
    1.39 +</svg>

mercurial