Raw File
Blending_in_a_group_with_opacity.html
<!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>
back to top