mix-blend-mode-stacking-context-creates-isolation.html (1847B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Test: stacking context creates isolated group</title> 6 <link rel="author" title="Mirela Budăeș" href="mailto:mbudaes@adobe.com"> 7 <link rel="help" href="https://drafts.fxtf.org/compositing-1/#mix-blend-mode"> 8 <link rel="reviewer" title="Mihai Balan" href="mailto:mibalan@adobe.com"> 9 <link rel="reviewer" title="Rik Cabanier" href="mailto:cabanier@adobe.com"> 10 <meta name="assert" content="Test checks that properties that cause the creation of stacking context cause a group to be isolated"> 11 <link rel="match" href="reference/mix-blend-mode-stacking-context-creates-isolation-ref.html"> 12 <style> 13 .container{ 14 margin: 30px; 15 width: 130px; 16 height: 130px; 17 float: left; 18 background: yellow;/*rgb(255,255,0);*/ 19 } 20 .simple{ 21 background: lime;/* rgb(0,255,0);*/ 22 width: 100px; 23 height: 100px; 24 position: fixed; 25 } 26 .mixed { 27 background: red;/*rgb(255,0,0);*/ 28 margin-top: 20px; 29 margin-left: 20px; 30 width: 100px; 31 height: 100px; 32 mix-blend-mode: multiply; 33 } 34 </style> 35 </head> 36 <body> 37 <p>Test passes if there is no complete red square on the screen. <br> 38 You should see two overlapping lime and red squares on top of a yellow one. <br> 39 At the intersection of the lime and red squares, a black square will be created. </p> 40 <div class="container"> 41 <div class="simple"> 42 <div class="mixed"></div> 43 </div> 44 </div> 45 </body> 46 </html>