servo/tests/wpt/css-tests/compositing-1_dev/xhtml1/mix-blend-mode-simple.xht

31 lines
No EOL
1.2 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>
<title>CSS Test: An element with mix-blend-mode blends with its parent element.</title>
<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 its parent element." name="assert" />
<meta content="" name="flags" />
<link href="reference/green-square.xht" rel="match" />
<style type="text/css">
div {
width: 100px;
height: 100px;
}
.parent {
background: #FF0;
}
.child {
background: #F00;
mix-blend-mode: difference;
}
</style>
</head>
<body>
<p>Test passes if you can see a green square on the screen.</p>
<div class="parent">
<div class="child"></div>
</div>
</body></html>