diff options
Diffstat (limited to 'testing/web-platform/tests/css/compositing/mix-blend-mode/mix-blend-mode-animation.html')
-rw-r--r-- | testing/web-platform/tests/css/compositing/mix-blend-mode/mix-blend-mode-animation.html | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/compositing/mix-blend-mode/mix-blend-mode-animation.html b/testing/web-platform/tests/css/compositing/mix-blend-mode/mix-blend-mode-animation.html new file mode 100644 index 0000000000..55618485d8 --- /dev/null +++ b/testing/web-platform/tests/css/compositing/mix-blend-mode/mix-blend-mode-animation.html @@ -0,0 +1,37 @@ +<!DOCTYPE html> +<html> + <head> + <title>CSS Test: Blended element with animation</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 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> |