max-height-106

max-height - float and overflow

WeasyPrint

This browser

Flags
ahem

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 3 
 4  <head>
 5 
 6   <title>CSS Test: max-height - float and overflow</title>
 7 
 8   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
 9   <link rel="author" title="Hilbrand Edskes" href="http://edskes.com/">
10   <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights">
11   <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats">
12   <meta content="ahem" name="flags">
13   <meta content="" name="assert">
14 
15   <style type="text/css">
16   div
17   {
18   color: green;
19   float: left;
20   font: 200px/1 Ahem;
21   max-height: 200px;
22   overflow: scroll;
23   }
24   </style>
25 
26  </head>
27 
28  <body>
29 
30   <p>PREREQUISITE: User agent needs to support scrollbars as the scrolling mechanism. If it does not, then this test case does not apply to this user agent.</p>
31 
32   <p>Test passes if there is a green square with scrollbars.</p>
33 
34   <div>X</div>
35 
36  </body>
37 </html>