mix-blend-mode-parent-with-border-radius.html (1612B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Test: blending with parent having border radius</title> 6 <link rel="author" title="Mirela Budăeș" href="mailto:mbudaes@adobe.com"> 7 <link rel="author" title="Mihai Tica" href="mailto:mitica@adobe.com"> 8 <link rel="reviewer" title="Mihai Balan" href="mailto:mibalan@adobe.com"> 9 <link rel="reviewer" title="Horia Olaru" href="mailto:olaru@adobe.com"> 10 <link rel="help" href="https://drafts.fxtf.org/compositing-1/#mix-blend-mode"> 11 <meta name="assert" content="Test checks that an element with mix-blend-mode blends 12 with the parent element having border-radius."> 13 <meta name="fuzzy" content="0-5;0-200"> 14 <link rel="match" href="reference/mix-blend-mode-parent-with-border-radius-ref.html"> 15 <style type="text/css"> 16 body { 17 background: lightgray; 18 } 19 .parent { 20 position: absolute; 21 z-index: 1; 22 width: 100px; 23 height: 100px; 24 background: #F00; 25 border-radius: 50px; 26 } 27 .blended { 28 background: #FF0; 29 width: 100px; 30 height: 100px; 31 mix-blend-mode: difference; 32 } 33 34 </style> 35 </head> 36 <body> 37 <p>Test passes if a green circle is drawn on top of a yellow square, over a lightgray background.</p> 38 <div class="parent"> 39 <div class="blended"></div> 40 </div> 41 </body> 42 </html>