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

27 lines
No EOL
1.3 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: Blended element with masking.</title>
<link href="mitica@adobe.com" rel="author" title="Mihai Tica" />
<link href="https://drafts.fxtf.org/compositing-1/#mix-blend-mode" rel="help" />
<meta content="Test checks that an element having mask and mix-blend-mode blends with its parent element." name="assert" />
<meta content="svg" name="flags" />
<link href="mailto:cabanier@adobe.com" rel="reviewer" title="Rik Cabanier" />
<link href="mailto:mbudaes@adobe.com" rel="reviewer" title="Mirela Budaes" />
<link href="reference/mix-blend-mode-mask-ref.xht" rel="match" />
<style type="text/css">
div {
width: 100px;
height: 100px;
}
</style>
</head>
<body>
<p>Test passes if you can see a green circle. <br />
The test fails if the circle is drawn with red. </p>
<div style="background: #FF0">
<div style="background: #F00; mix-blend-mode: difference; mask-image: url('support/red_circle.svg');"></div>
</div>
</body></html>