blob: 71fa2ad025143aedb0e06e75fa9a8afaaee8a1d1 [file] [log] [blame]
<!DOCTYPE HTML>
<html>
<head>
<style>
body {
background: red;
}
div {
margin: 20px;
width: 60px;
height: 60px;
}
.parent {
position: relative;
z-index: -1;
float: left;
background: violet;
}
.child {
background: url('resources/ducky.png') no-repeat 0 0 /100% 100%, green;
}
</style>
<!-- Test to ensure that blending is performed only with the contents of the element's nearest ancestor stacking context.
Test this with a parent element that has zIndex set. -->
<body>
<div class="parent">
<div class="child" style="mix-blend-mode: normal;"></div>
</div>
<div class="parent">
<div class="child" style="mix-blend-mode: multiply;"></div>
</div>
<div class="parent">
<div class="child" style="mix-blend-mode: screen;"></div>
</div>
<div class="parent">
<div class="child" style="mix-blend-mode: overlay;"></div>
</div>
<div class="parent">
<div class="child" style="mix-blend-mode: darken;"></div>
</div>
<div class="parent">
<div class="child" style="mix-blend-mode: lighten;"></div>
</div>
<div class="parent">
<div class="child" style="mix-blend-mode: color-dodge;"></div>
</div>
<div class="parent">
<div class="child" style="mix-blend-mode: color-burn;"></div>
</div>
<div class="parent">
<div class="child" style="mix-blend-mode: hard-light;"></div>
</div>
<div class="parent">
<div class="child" style="mix-blend-mode: soft-light;"></div>
</div>
<div class="parent">
<div class="child" style="mix-blend-mode: difference;"></div>
</div>
<div class="parent">
<div class="child" style="mix-blend-mode: exclusion;"></div>
</div>
<div class="parent">
<div class="child" style="mix-blend-mode: hue;"></div>
</div>
<div class="parent">
<div class="child" style="mix-blend-mode: saturation;"></div>
</div>
<div class="parent">
<div class="child" style="mix-blend-mode: color;"></div>
</div>
<div class="parent">
<div class="child" style="mix-blend-mode: luminosity;"></div>
</div>
</body>
</html>