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

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

mercurial