Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/compositing/mix-blend-mode/mix-blend-mode-blending-with-sibling.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Test: mix-blend-mode between an element and its sibling</title>
<link rel="author" title="Mirela Budăeș" href="mailto:mbudaes@adobe.com">
<link rel="author" title="Mihai Tica" href="mailto:mitica@adobe.com">
<link rel="reviewer" title="Mihai Balan" href="mailto:mibalan@adobe.com">
<meta name="assert" content="Test checks that an element with mix-blend-mode blends with a sibling element">
<link rel="match" href="reference/green-square.html">
<style type="text/css">
div {
width: 100px;
height: 100px;
}
.container {
position: fixed;
z-index: 0;
background: #FFF;
}
.blender {
background: #FF0;
mix-blend-mode: difference;
}
.sibling {
margin-top: -100px;
background: #F00;
}
</style>
</head>
<body>
<p>Test passes if you can see a green square on the screen.</p>
<div class="container">
<div class="blender"></div>
<div class="sibling"></div>
</div>
</body>
</html>