mix-blend-mode-iframe-parent.html (1127B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Test: an iframe element with mix-blend-mode should blend with its parent element.</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 iframe element blends with its parent element."> 8 <meta name="fuzzy" content="0-1;0-10"> 9 <link rel="reviewer" title="Rik Cabanier" href="mailto:cabanier@adobe.com"> 10 <link rel="reviewer" title="Mirela Budaes" href="mailto:mbudaes@adobe.com"> 11 <link rel="match" href="reference/mix-blend-mode-iframe-parent-ref.html"> 12 </head> 13 <body> 14 <p>Test passes if you can see a green rectangle. <br> 15 If blending is not performed, the canvas is displayed with red. </p> 16 17 <div style="width: 100px; height: 100px; background: #FF0;"> 18 <iframe src="support/red_square.html" frameborder="0" style="margin-top: -8px; margin-left: -8px; mix-blend-mode: difference;"></iframe> 19 </div> 20 </body> 21 </html>