mix-blend-mode-mask.html (1203B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Test: Blended element with masking.</title> 5 <link rel="author" title="Mihai Tica" href="mailto:mitica@adobe.com"> 6 <link rel="help" href="https://drafts.fxtf.org/compositing-1/#mix-blend-mode"> 7 <meta name="assert" content="Test checks that an element having mask and mix-blend-mode blends with its parent element."> 8 <meta name="flags" content="svg"> 9 <meta name="fuzzy" content="0-1;0-10"> 10 <link rel="reviewer" title="Rik Cabanier" href="mailto:cabanier@adobe.com"> 11 <link rel="reviewer" title="Mirela Budaes" href="mailto:mbudaes@adobe.com"> 12 <link rel="match" href="reference/mix-blend-mode-mask-ref.html"> 13 <style type="text/css"> 14 div { 15 width: 100px; 16 height: 100px; 17 } 18 </style> 19 </head> 20 <body> 21 <p>Test passes if you can see a green circle. <br> 22 The test fails if the circle is drawn with red. </p> 23 24 <div style="background: #FF0"> 25 <div style="background: #F00; mix-blend-mode: difference; mask-image: url('support/red_circle.svg');"></div> 26 </div> 27 </body> 28 </html>