| <!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."> |
| <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: 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> |