mirror of
https://github.com/servo/servo.git
synced 2025-07-10 00:43:39 +01:00
40 lines
No EOL
1.5 KiB
HTML
40 lines
No EOL
1.5 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml"><head>
|
|
<meta charset="utf-8" />
|
|
<title>CSS Test: mix-blend-mode between an element and its sibling</title>
|
|
<link href="mailto:mbudaes@adobe.com" rel="author" title="Mirela Budăeș" />
|
|
<link href="mailto:mitica@adobe.com" rel="author" title="Mihai Tica" />
|
|
<link href="mailto:mibalan@adobe.com" rel="reviewer" title="Mihai Balan" />
|
|
<link href="https://drafts.fxtf.org/compositing-1/#mix-blend-mode" rel="help" />
|
|
<meta content="Test checks that an element with mix-blend-mode blends with a sibling element" name="assert" />
|
|
<meta content="" name="flags" />
|
|
<link href="reference/green-square.xht" rel="match" />
|
|
<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> |