mix-blend-mode-stacking-context-001.html (1477B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Test: mix-blend-mode between an element and its child</title> 6 <link rel="author" title="Mirela Budăeș" href="mailto:mbudaes@adobe.com"> 7 <link rel="reviewer" title="Mihai Balan" href="mailto:mibalan@adobe.com"> 8 <link rel="reviewer" title="Rik Cabanier" href="mailto:cabanier@adobe.com"> 9 <link rel="help" href="https://drafts.fxtf.org/compositing-1/#mix-blend-mode"> 10 <meta name="assert" content="Test checks that the element with mix-blend-mode and opacity blends with the parent element"> 11 <link rel="match" href="reference/mix-blend-mode-stacking-context-001-ref.html"> 12 <style> 13 .simple{ 14 background: aqua;/*rgb(0,255,255);*/ 15 width: 140px; 16 height: 140px; 17 display:inline-block; 18 } 19 .mixed { 20 opacity: 0.9; 21 background: red;/*rgb(255,0,0);*/ 22 margin-top: 20px; 23 margin-left: 20px; 24 width: 100px; 25 height: 100px; 26 mix-blend-mode: multiply; 27 } 28 </style> 29 </head> 30 <body> 31 <p>Test passes if you see a black rectangle with large aqua borders. 32 You should not see a red rectangle on the page. </p> 33 <div class="simple"> 34 <div class="mixed"></div> 35 </div> 36 </body> 37 </html>