background_properties_greater_than_images

Number of background properties greater than number of background images

WeasyPrint

This browser

Assertion
If the background properties values are greater than the number of background images, then the excess values are ignored.

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html xmlns="http://www.w3.org/1999/xhtml"><head>
 3         <title>CSS Test: Number of background properties greater than number of background images</title>
 4         <link href="http://www.microsoft.com/" rel="author" title="Microsoft">
 5         <link href="http://www.w3.org/TR/css3-background/#layering" rel="help">
 6         <meta content="" name="flags">
 7         <meta content="If the background properties values are greater than the number of background images, then the excess values are ignored." name="assert">
 8         <style type="text/css">
 9             div
10             {
11                 margin: 10px;
12                 width: 250px;
13                 height: 250px;
14                 border: thick solid black;
15             }
16             #test
17             {
18                 background-image: url("support/aqua_color.png"), url("support/orange_color.png"), url("support/green_color.png");
19                 background-position: right bottom, right top, left bottom, left center, right center;
20                 background-repeat: no-repeat, no-repeat, repeat-x, repeat, repeat-y;
21             }
22             #reference
23             {
24                 background-image: url("support/aqua_color.png"), url("support/orange_color.png"), url("support/green_color.png");
25                 background-position: right bottom, right top, left bottom;
26                 background-repeat: no-repeat, no-repeat, repeat-x;
27             }
28         </style>
29     </head>
30     <body>
31         <p>Test passes if there is green on the page and contents of the black boxes look exactly the same.</p>
32         <table>
33             <tbody><tr>
34                 <td>
35                     <div id="test"></div>
36                 </td>
37                 <td>
38                     <div id="reference"></div>
39                 </td>
40             </tr>
41         </tbody></table>
42     
43 
44 </body></html>