Source code
Revision control
Copy as Markdown
Other Tools
<!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">
<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>