layout/reftests/svg/objectBoundingBox-and-pattern-02.svg

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/svg/objectBoundingBox-and-pattern-02.svg	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,24 @@
     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 +
    1.10 +    <title>Testcase for elements referencing an objectBoundingBox pattern with a viewBox</title>
    1.11 +
    1.12 +    <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=605022 -->
    1.13 +
    1.14 +    <defs>
    1.15 +      <pattern id="test" x="0" y="0" width="20%" height="20%" patternContentUnits="objectBoundingBox" viewBox="0 0 20 20">
    1.16 +        <rect width="20" height="20" stroke="none" fill="lime"/>
    1.17 +        <rect width="1" height="1" stroke="none" fill="red"/>
    1.18 +      </pattern>
    1.19 +      <pattern id="cover" x="0" y="0" width="20%" height="20%" patternContentUnits="objectBoundingBox">
    1.20 +        <rect width="0.01" height="0.01" stroke="none" fill="lime"/>
    1.21 +      </pattern>
    1.22 +    </defs>
    1.23 +
    1.24 +  <rect width="100%" height="100%" fill="lime"/>
    1.25 +  <rect x="20" y="20" width="200" height="200" fill="url(#test)"/>
    1.26 +  <rect x="20" y="20" width="200" height="200" fill="url(#cover)"/>
    1.27 +</svg>

mercurial