| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x
html1/DTD/xhtml1-strict.dtd"> |
| 2 |
| 3 <html xmlns="http://www.w3.org/1999/xhtml"> |
| 4 |
| 5 <head> |
| 6 |
| 7 <title>CSS Test: max-width - height and overflow</title> |
| 8 |
| 9 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserB
ugsSection/css21testsuite/" /> |
| 10 <link rel="author" title="Hilbrand Edskes" href="http://edskes.com/" /> |
| 11 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths"
/> |
| 12 <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#overflow" /> |
| 13 <link rel="match" href="max-width-107-ref.xht" /> |
| 14 |
| 15 <meta content="ahem" name="flags" /> |
| 16 <meta content="'max-width' specifies a fixed maximum used width. If the used w
idth is greater than max-width, then the computed value of max-width is used as
the computed value for width." name="assert" /> |
| 17 |
| 18 <style type="text/css"><![CDATA[ |
| 19 div |
| 20 { |
| 21 font: 200px/1 Ahem; |
| 22 height: 200px; |
| 23 max-width: 200px; |
| 24 overflow: auto; |
| 25 position: absolute; |
| 26 } |
| 27 |
| 28 div#test-red-overlapped {color: red;} |
| 29 |
| 30 div#control-green-overlapping {color: green;} |
| 31 ]]></style> |
| 32 |
| 33 </head> |
| 34 |
| 35 <body> |
| 36 |
| 37 <p>PREREQUISITE: User agent needs to support scrollbars as the scrolling mecha
nism. If it does not, then this test case does not apply to this user agent.</p> |
| 38 |
| 39 <p>Test passes if there is a green square and <strong>no red</strong>. Such gr
een square should not have scrollbar(s).</p> |
| 40 |
| 41 <div id="test-red-overlapped">XX XX</div> |
| 42 |
| 43 <div id="control-green-overlapping">X</div> |
| 44 |
| 45 </body> |
| 46 </html> |
| OLD | NEW |