layout/reftests/svg/opacity-and-gradient-02-ref.svg

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/svg/opacity-and-gradient-02-ref.svg	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,34 @@
     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" version="1.1">
     1.9 +
    1.10 +  <title>Testcase for opacity on elements referencing a gradient</title>
    1.11 +
    1.12 +  <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=539165 -->
    1.13 +
    1.14 +  <defs>
    1.15 +    <linearGradient id="lime" gradientUnits="userSpaceOnUse">
    1.16 +      <stop stop-color="lime"/>
    1.17 +    </linearGradient>
    1.18 +    <!-- OS X doesn't draw solid gradients as a solid color so we need to use
    1.19 +         a gradient fill below
    1.20 +      -->
    1.21 +    <linearGradient id="red" gradientUnits="userSpaceOnUse">
    1.22 +      <stop stop-color="red"/>
    1.23 +    </linearGradient>
    1.24 + </defs>
    1.25 +
    1.26 +  <rect width="100%" height="100%" fill="url(#lime)"/>
    1.27 +
    1.28 +  <!-- test 'opacity' -->
    1.29 +  <rect width="25%" height="100%" fill="url(#red)" opacity="1"/>
    1.30 +  
    1.31 +  <!-- test 'fill-opacity' -->
    1.32 +  <rect x="25%" width="25%" height="100%" fill="url(#red)" opacity="0.5"/>
    1.33 +
    1.34 +  <!-- test 'fill-opacity' -->
    1.35 +  <rect x="50%" width="25%" height="100%" fill="url(#red)" opacity="0.5"/>
    1.36 +
    1.37 +</svg>

mercurial