layout/reftests/svg/opacity-and-gradient-01.svg

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

     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=357163 -->
    11   <defs>
    12     <linearGradient id="lime" gradientUnits="userSpaceOnUse">
    13       <stop stop-color="lime"/>
    14     </linearGradient>
    15     <linearGradient id="red" gradientUnits="userSpaceOnUse">
    16       <stop stop-color="red"/>
    17     </linearGradient>
    18   </defs>
    20   <rect width="100%" height="100%" fill="red"/>
    22   <!-- Create the "pass" rect using a gradient so the testcase doesn't seem to
    23        pass if gradients are not supported -->
    24   <rect width="100%" height="100%" fill="url(#lime)"/>
    26   <!-- test 'opacity' -->
    27   <rect width="25%" height="100%" fill="url(#red)" opacity="0"/>
    29   <!-- test 'fill-opacity' -->
    30   <rect x="25%" width="25%" height="100%" fill="url(#red)" fill-opacity="0"/>
    32   <!-- test 'stroke-opacity' -->
    33   <line x1="75%" x2="75%" y2="100%" stroke="url(#red)" stroke-width="50%" stroke-opacity="0"/>
    35 </svg>

mercurial