background-image-002

CSS Backgrounds: background-image layered background on div

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Assertion
Test checks that background-image displays layerd images in the correct order for div background.

Source

 1 <!DOCTYPE html>
 2 <html><head><title>CSS Backgrounds: background-image layered background on div</title>
 3 <link href="http://www.justin-hill.com" rel="author" title="Justin Hill">
 4 <link href="http://www.w3.org/TR/css3-background/#the-background-image" rel="help">
 5 <link href="reference/background-image-001-ref.htm" rel="match">
 6 <meta content="Test checks that background-image displays layerd images in the correct order for div background." name="assert">
 7 <style>
 8     .container {
 9       top:50px;
10       left:50px;
11       width: 100px;
12       height: 100px;
13       background-image: url("support/green.png"), url("support/red.png");
14       background-color: red;
15     }
16 </style>
17 </head><body>
18     <p> Test passes if green image shows and no red visable.</p>
19     <div class="container"></div>
20 
21 </body></html>