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

26 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: Image element with mix-blend-mode.</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 mix-blend-mode is applied to an img element." name="assert" />
<meta content="image" 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-image-notref.xht" rel="mismatch" />
<style type="text/css">
div {
width: 100px;
height: 75px;
background: #FF0;
}
</style>
</head>
<body>
<p>Test passes if you can see a green rectangle.</p>
<div>
<img src="support/red.png" style="max-width:100%; max-height:100%; mix-blend-mode: difference;" />
</div>
</body></html>