list-style-position-006

Marker box position (inside principal box) - block box with 'float:left' (as child of principal box)

WeasyPrint

This browser

Assertion
Since a marker box is the first inline element in the principal box when 'list-style-position:inside', the following block box (floated to the left) must visually appear before the marker box in the rendered document

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 (inside principal box) - block box with 'float:left' (as child of principal box)</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#float-position">
10   <meta name="flags" content="">
11   <meta name="assert" content="Since a marker box is the first inline element in the principal box when 'list-style-position:inside', the following block box (floated to the left) must visually appear before the marker box in the rendered document">
12   <style type="text/css">
13   #test{
14   color:navy;
15   display:list-item;
16   font-size:85px;
17   list-style-position:inside;
18   }
19   #test div{
20   background:blue;
21   float:left;
22   height:100px;
23   width:100px;
24   }
25   </style>
26  </head>
27 
28  <body>
29   <p>To pass, there <strong>must</strong> be a bullet (filled-in circle) to the right of a square.</p>
30   <div id="test">
31    <div>&nbsp;</div>
32   </div>
33  </body>
34 </html>