lists-backgrounds-001

List with background applied

WeasyPrint

This browser

Assertion
Background properties only apply to the principal box and not the marker box when the marker is set to outside.

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 3     <head>
 4         <title>CSS Test: List with background applied</title>
 5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
 6         <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#lists">
 7         <meta name="flags" content="">
 8         <meta name="assert" content="Background properties only apply to the principal box and not the marker box when the marker is set to outside.">
 9         <style type="text/css">
10             #div1
11             {
12                 background: orange;
13                 margin-left: 50px;
14                 padding-left: 30px;
15             }
16             div div
17             {
18                 display: list-item;
19                 list-style-type: disc;
20                 background: blue;
21             }
22         </style>
23     </head>
24     <body>
25         <p>Test passes if the text has a blue background and the marker has an orange background.</p>
26         <div id="div1">
27             <div>This text should have a blue background</div>
28         </div>
29     </body>
30 </html>