layout/reftests/svg/opacity-and-pattern-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

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 pattern</title>
michael@0 8
michael@0 9 <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=374280 -->
michael@0 10
michael@0 11 <defs>
michael@0 12 <pattern id="lime" width="100%" height="100%" patternUnits="userSpaceOnUse">
michael@0 13 <rect width="100%" height="100%" fill="lime"/>
michael@0 14 </pattern>
michael@0 15
michael@0 16 <pattern id="red" width="100%" height="100%" patternUnits="userSpaceOnUse">
michael@0 17 <rect width="100%" height="100%" fill="red"/>
michael@0 18 </pattern>
michael@0 19 </defs>
michael@0 20
michael@0 21 <rect width="100%" height="100%" fill="red"/>
michael@0 22
michael@0 23 <!-- Create the "pass" rect using a pattern so the testcase doesn't seem to
michael@0 24 pass if patterns are not supported -->
michael@0 25 <rect width="100%" height="100%" fill="url(#lime)"/>
michael@0 26
michael@0 27 <!-- test 'opacity' -->
michael@0 28 <rect width="25%" height="100%" fill="url(#red)" opacity="0"/>
michael@0 29
michael@0 30 <!-- test 'fill-opacity' -->
michael@0 31 <rect x="25%" width="25%" height="100%" fill="url(#red)" fill-opacity="0"/>
michael@0 32
michael@0 33 <!-- test 'stroke-opacity' -->
michael@0 34 <line x1="75%" x2="75%" y2="100%" stroke="url(#red)" stroke-width="50%" stroke-opacity="0"/>
michael@0 35
michael@0 36 </svg>

mercurial