servo/tests/wpt/css-tests/compositing-1_dev/xhtml1/mix-blend-mode-script.xht
Ms2ger 296fa2512b Update web-platform-tests and CSS tests.
- Update CSS tests to revision e05bfd5e30ed662c2f8a353577003f8eed230180.
- Update web-platform-tests to revision a052787dd5c069a340031011196b73affbd68cd9.
2017-02-06 22:38:29 +01:00

27 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: Set mix-blend-mode from script.</title>
<link href="mailto: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 when set from script." name="assert" />
<meta content="dom" 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-script-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><div style="background: #F00;" id="blender"></div></div>
<script type="text/javascript">
document.getElementById("blender").style.mixBlendMode = "difference";
</script>
</body></html>