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

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

     1 <!--
     2      Any copyright is dedicated to the Public Domain.
     3      http://creativecommons.org/publicdomain/zero/1.0/
     4 -->
     5 <svg xmlns="http://www.w3.org/2000/svg" version="1.1">
     7   <title>Testcase for opacity on elements referencing a gradient</title>
     9   <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=539165 -->
    11   <defs>
    12     <linearGradient id="lime" gradientUnits="userSpaceOnUse">
    13       <stop stop-color="lime"/>
    14     </linearGradient>
    15     <!-- OS X doesn't draw solid gradients as a solid color so we need to use
    16          a gradient fill below
    17       -->
    18     <linearGradient id="red" gradientUnits="userSpaceOnUse">
    19       <stop stop-color="red"/>
    20     </linearGradient>
    21  </defs>
    23   <rect width="100%" height="100%" fill="url(#lime)"/>
    25   <!-- test 'opacity' -->
    26   <rect width="25%" height="100%" fill="url(#red)" opacity="1"/>
    28   <!-- test 'fill-opacity' -->
    29   <rect x="25%" width="25%" height="100%" fill="url(#red)" opacity="0.5"/>
    31   <!-- test 'fill-opacity' -->
    32   <rect x="50%" width="25%" height="100%" fill="url(#red)" opacity="0.5"/>
    34 </svg>

mercurial