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

28 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: SVG element is blended.</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 SVG element blends with the parent container." 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-svg-ref.xht" rel="match" />
<style type="text/css">
div {
width: 100px;
height: 100px;
background: #FF0;
}
</style>
</head>
<body>
<p>Test passes if you can see a green box.</p>
<div>
<svg width="100" style="mix-blend-mode: difference;" height="100" xmlns="http://www.w3.org/2000/svg">
<rect width="100" style="fill: #F00;" height="100">
</rect></svg>
</div>
</body></html>