layout/reftests/svg/opacity-and-gradient-02-ref.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

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

mercurial