| <!DOCTYPE html> |
| <html> |
| <head> |
| <meta charset="utf-8"> |
| <title>CSS Test: mix-blend-mode between an element and its sibling</title> |
| <link rel="author" title="Mirela Budăeș" href="mailto:mbudaes@adobe.com"> |
| <link rel="author" title="Mihai Tica" href="mailto:mitica@adobe.com"> |
| <link rel="reviewer" title="Mihai Balan" href="mailto:mibalan@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 blends with a sibling element"> |
| <meta name="flags" content=""/> |
| <link rel="match" href="reference/green-square.html"> |
| <style type="text/css"> |
| div { |
| width: 100px; |
| height: 100px; |
| } |
| .container { |
| position: fixed; |
| z-index: 0; |
| background: #FFF; |
| } |
| .blender { |
| background: #FF0; |
| mix-blend-mode: difference; |
| } |
| .sibling { |
| margin-top: -100px; |
| background: #F00; |
| } |
| </style> |
| </head> |
| <body> |
| <p>Test passes if you can see a green square on the screen.</p> |
| <div class="container"> |
| <div class="blender"></div> |
| <div class="sibling"></div> |
| </div> |
| </body> |
| </html> |