| 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: Relative positioning and overflow: auto</title> |
| 8 |
| 9 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserB
ugsSection/css21testsuite/" /> |
| 10 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#relative-positi
oning" /> |
| 11 |
| 12 <meta name="flags" content="interact" /> |
| 13 <meta name="assert" content="If relative positioning causes overflow to an con
taining ancestor, then the user agent needs to provide a scrolling mechanism to
all of the content at its offset position. In this test, div#taller-and-wider-re
l-pos generates a 1.75in wide by 1.75in tall box." /> |
| 14 |
| 15 <style type="text/css"><![CDATA[ |
| 16 div#containing-ancestor |
| 17 { |
| 18 height: 1.5in; |
| 19 overflow: auto; |
| 20 width: 1.5in; |
| 21 } |
| 22 |
| 23 div#taller-and-wider-rel-pos |
| 24 { |
| 25 border: blue solid 5px; |
| 26 height: 1in; |
| 27 left: 0.75in; |
| 28 position: relative; |
| 29 top: 0.75in; |
| 30 width: 1in; |
| 31 } |
| 32 ]]></style> |
| 33 |
| 34 </head> |
| 35 |
| 36 <body> |
| 37 |
| 38 <p>Test passes if, after scrolling down and to the right, all four edges of a
blue square are visible.</p> |
| 39 |
| 40 <div id="containing-ancestor"> |
| 41 <div id="taller-and-wider-rel-pos"></div> |
| 42 </div> |
| 43 |
| 44 </body> |
| 45 </html> |
| OLD | NEW |