list-style-position-008

Marker box position (outside principal box) - floated-left child

WeasyPrint

This browser

Assertion
A floated element (as a child of the principal box) should not affect the horizontal position of the marker box (positioned outside principal box) in relation to the principal box's content

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 3  <head>
 4   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 5   <title>CSS Test: Marker box position (outside principal box) - floated-left child</title>
 6   <link rel="author" title="James Hopkins" href="http://idreamincode.co.uk/css21testsuite">
 7   <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#list-style">
 8   <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#block-boxes">
 9   <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats">
10   <meta name="flags" content="">
11   <meta name="assert" content="A floated element (as a child of the principal box) should not affect the horizontal position of the marker box (positioned outside principal box) in relation to the principal box's content">
12   <style type="text/css">
13   #test{
14   border-top:3px solid black;
15   display:list-item;
16   font-size:85px;
17   list-style-position:outside;
18   margin:100px;
19   }
20   #test div{
21   background:yellow;
22   float:left;
23   height:100px;
24   width:100px;
25   }
26   </style>
27  </head>
28 
29  <body>
30   <p>To pass, a bullet (filled-in circle) <strong>must</strong> appear to the left of a yellow square, and the bullet probably <strong>should not</strong> appear above the black line.</p>
31   <div id="test">
32    <div></div>
33   </div>
34  </body>
35 </html>