servo/tests/wpt/css-tests/compositing-1_dev/xhtml1/reference/mix-blend-mode-transition-ref.xht

30 lines
No EOL
1,015 B
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 transition</title>
<link href="mitica@adobe.com" rel="author" title="Mihai Tica" />
<meta content="dom" name="flags" />
<style type="text/css">
div {
width: 100px;
height: 100px;
}
#blender {
background: #0F0;
transition: opacity 1s ease;
}
.opaqueBox {
opacity: 0.4;
}
</style>
</head>
<body>
<p>Test passes if you can see a fading green rectangle.</p>
<div style="background: #FF0;"><div id="blender"></div></div>
<script type="text/javascript">
setInterval(function(){ document.getElementById('blender').className = 'opaqueBox'; }, 100);
</script>
</body></html>