mirror of
https://github.com/servo/servo.git
synced 2025-10-03 18:19:14 +01:00
37 lines
1.4 KiB
HTML
37 lines
1.4 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>CSS Test: Blended element with transition</title>
|
|
<link rel="author" title="Mihai Tica" href="mailto:mitica@adobe.com">
|
|
<link rel="help" href="https://drafts.fxtf.org/compositing-1/#mix-blend-mode">
|
|
<meta name="assert" content="Test checks that an element having a transition applied on opacity blends with the parent element.">
|
|
<meta name="flags" content="dom"/>
|
|
<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-transition-ref.html">
|
|
<style type="text/css">
|
|
div {
|
|
width: 100px;
|
|
height: 100px;
|
|
background: #FF0;
|
|
}
|
|
|
|
#blender {
|
|
background: #F00;
|
|
mix-blend-mode: difference;
|
|
transition: opacity 1s ease;
|
|
}
|
|
|
|
.opaqueBox {
|
|
opacity: 0.4;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p>Test passes if you can see a fading green rectangle.</p>
|
|
<div><div id="blender"></div></div>
|
|
<script type="text/javascript">
|
|
setInterval(function(){ document.getElementById('blender').className = 'opaqueBox'; }, 100);
|
|
</script>
|
|
</body>
|
|
</html>
|