Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that disables it given conditions:
- This WPT test may be referenced by the following Test IDs:
- /css/compositing/mix-blend-mode/mix-blend-mode-animation.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<head>
<title>CSS Test: Blended element with animation</title>
<link rel="author" title="Mihai Tica" href="mailto:mitica@adobe.com">
<meta name="assert" content="Test checks that an element with mix-blend-mode and animation blends with the parent element.">
<meta name="fuzzy" content="0-2;0-11000">
<link rel="reviewer" title="Rik Cabanier" href="mailto:cabanier@adobe.com">
<link rel="reviewer" title="Mirela Budaes" href="mailto:mbudaes@adobe.com">
<link rel="match" href="reference/mix-blend-mode-animation-ref.html">
<style type="text/css">
div {
width: 100px;
height: 100px;
background: #FF0;
}
@keyframes changeOpacity
{
from { opacity: 0.9; }
50% { opacity: 0.9; }
to { opacity: 0.1; }
}
#blender {
background: #F00;
mix-blend-mode: difference;
animation: changeOpacity 10s;
}
</style>
</head>
<body>
<p>Test passes if you can see a fading green box after 5 seconds.</p>
<div><div id="blender"></div></div>
</body>
</html>