summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/compositing/Blending_in_a_group_with_opacity.html
blob: 40b10441124ad873294d69cfb8fd64bc3f20cb14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!DOCTYPE html>
<html>
<head>
    <title>mix-blend-mode with isolated groups API Test: Blending in a group with opacity</title>
    <link rel="author" title="windtale" href="mailto:windtale@163.com">
    <link rel="help" href="http://www.w3.org/TR/compositing-1/#mix-blend-mode">
    <meta name="flags" content="svg">
    <meta name="assert" content="Blending in a group with opacity">
    <style type="text/css">
        #greenSquare {
			mix-blend-mode: darken;
        }
        #redSquare {
			mix-blend-mode: lighten;
        }
        #svgMain {
            top: 100px;
            left: 100px;
            width: 200px;
            height: 200px;
			background: blue;
        }
    </style>

</head>
<body>

<svg id="svgMain">
	<g opacity="0.59">
		<rect id="redSquare" width="100" height="100" fill="red"></rect>
	</g>
</svg>

</body>
</html>