background-blend-mode-gradient-image.html (1262B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Test: blending between multiple backgrounds (gradient and image) using background-blend-mode</title> 6 <link rel="author" title="Mirela Budăeș" href="mailto:mbudaes@adobe.com"> 7 <link rel="reviewer" title="Mihai Balan" href="mailto:mibalan@adobe.com"> 8 <link rel="reviewer" title="Rik Cabanier" href="mailto:cabanier@adobe.com"> 9 <link rel="help" href="https://drafts.fxtf.org/compositing-1/#background-blend-mode"> 10 <meta name="assert" content="Test checks that setting background-blend-mode property for an element with two background layers (a gradient and a png image) results in blending between the two layers."> 11 <link rel="match" href="reference/background-blend-mode-gradient-image-ref.html"> 12 <style> 13 div { 14 margin: 5px; 15 width: 130px; 16 height: 130px; 17 background: url('support/red.png') no-repeat 0 0 /100% 100%, linear-gradient(to right, lime 50%, blue 51%); 18 /*lime: rgb(0,255,0); 19 blue: rgb(0,0,255);*/ 20 display: block; 21 float: left; 22 background-blend-mode: multiply, normal; 23 } 24 </style> 25 </head> 26 <body> 27 <p>Test passes if there is no red square on the screen. <br> 28 You should see a black square.</p> 29 <div></div> 30 </body> 31 </html>