mirror of
https://github.com/servo/servo.git
synced 2025-06-24 17:14:33 +01:00
40 lines
No EOL
1.4 KiB
HTML
40 lines
No EOL
1.4 KiB
HTML
<!DOCTYPE html>
|
|
<html><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.htm" 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> |