mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
- Update CSS tests to revision e05bfd5e30ed662c2f8a353577003f8eed230180. - Update web-platform-tests to revision a052787dd5c069a340031011196b73affbd68cd9.
35 lines
No EOL
1.2 KiB
HTML
35 lines
No EOL
1.2 KiB
HTML
<!DOCTYPE html>
|
|
<html><head>
|
|
<title>CSS Test: Blended element with animation</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 an element with mix-blend-mode and animation blends with the parent element." name="assert">
|
|
<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-animation-ref.htm" rel="match">
|
|
<style type="text/css">
|
|
div {
|
|
width: 100px;
|
|
height: 100px;
|
|
background: #FF0;
|
|
}
|
|
|
|
@keyframes changeOpacity
|
|
{
|
|
from { opacity: 1; }
|
|
to { opacity: 0.1; }
|
|
}
|
|
|
|
#blender {
|
|
background: #F00;
|
|
mix-blend-mode: difference;
|
|
animation: changeOpacity 1s;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p>Test passes if you can see a fading green box.</p>
|
|
<div><div id="blender"></div></div>
|
|
|
|
|
|
</body></html> |