mix-blend-mode-blended-with-3D-transform.html (1654B)
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 with 3D transform </title> 6 <link rel="author" title="Mirela Budăeș" href="mailto:mbudaes@adobe.com"> 7 <link rel="author" title="Ion Roșca" href="mailto:rosca@adobe.com"> 8 <link rel="reviewer" title="Mihai Țică" href="mailto:mitica@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 3D transform blends correctly with its parent"> 11 <meta name="fuzzy" content="0-255;0-350"> 12 <link rel="match" href="reference/mix-blend-mode-blended-with-3D-transform-ref.html"> 13 <style type="text/css"> 14 .parent { 15 background: aqua;/*rgb(0,255,255);*/ 16 width: 140px; 17 height: 140px; 18 padding-top: 1px; 19 position:relative; 20 z-index: 1; 21 } 22 .blended { 23 background: fuchsia;/*rgb(255,0,255);*/ 24 margin-top: 20px; 25 margin-left: 20px; 26 width: 200px; 27 height: 200px; 28 transform:rotateX(20deg); 29 mix-blend-mode: difference; 30 } 31 </style> 32 </head> 33 <body> 34 <p>You should see a fuchsia square overlapping an aqua square. <br> 35 The overlapping area should be yellow. </p> 36 <div class="parent"> 37 <div class="blended"> 38 </div> 39 </div> 40 </body> 41 </html>