list-style-position-002

Marker box position - descendant block box with 'overflow'

WeasyPrint

This browser

Assertion
The position of a descendant block box inside a principal box must not be affected by 'overflow' being applied to the descendant, when marker box is positioned outside the principal box

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 - descendant block box with 'overflow'</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   <meta name="flags" content="">
10   <meta name="assert" content="The position of a descendant block box inside a principal box must not be affected by 'overflow' being applied to the descendant, when marker box is positioned outside the principal box">
11   <style type="text/css">
12   #test{
13   background:red;
14   display:list-item;
15   font-size:85px;
16   margin:50px;
17   }
18   #test div.descendant{
19   background:lime;
20   display: block;
21   overflow:auto;
22   }
23   </style>
24  </head>
25  <body>
26   <p>To pass, there <strong>must</strong> be a bullet (filled-in circle) visible which <strong>should</strong> appear alongside the green bar to the left, and there <strong>must not</strong> not be any red in this page.</p>
27   <div id="test">
28    <div><div class="descendant">&nbsp;</div></div>
29   </div>
30  </body>
31 </html>