mix-blend-mode-blended-element-overflow-hidden-and-border-radius.html (1756B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Test: blending between an element and its child having overflow:hidden and border-radius</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 an element having mix-blend-mode, overflow:hidden and border-radius blends correctly with its parent element."> 11 <meta name="fuzzy" content="0-10;0-5"> 12 <link rel="match" href="reference/mix-blend-mode-blended-element-overflow-hidden-and-border-radius-ref.html"> 13 <style type="text/css"> 14 .parent { 15 background: aqua;/*rgb(0,255,255);*/ 16 width: 150px; 17 height: 150px; 18 position: relative; 19 z-index: 1; 20 } 21 .blended { 22 width: 150px; 23 height: 150px; 24 overflow: hidden; 25 border-radius: 2em 2em; 26 mix-blend-mode: multiply; 27 } 28 .childOfBlended { 29 background: yellow;/*rgb(255,255,0);*/ 30 width: 150px; 31 height: 150px; 32 } 33 </style> 34 </head> 35 <body> 36 <p>The test passes if you see a lime rectangle with aqua rounded corners.</p> 37 <div class="parent"> 38 <div class="blended"> 39 <div class="childOfBlended"></div> 40 </div> 41 </div> 42 </body> 43 </html>