| 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 <html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 <head> |
| 4 <title>CSS Test: Relative positioning and overflow: auto</title> |
| 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> |
| 6 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#relative-
positioning" /> |
| 7 <meta name="flags" content="interact" /> |
| 8 <meta name="assert" content="If relative positioning causes overflow the
user agent needs to provide a scrolling mechanism to all of the content at its
offset position." /> |
| 9 <style type="text/css"> |
| 10 #div1 |
| 11 { |
| 12 height: 1.5in; |
| 13 position: relative; |
| 14 overflow: auto; |
| 15 width: 1.5in; |
| 16 } |
| 17 div div |
| 18 { |
| 19 border: solid blue 5px; |
| 20 height: 1in; |
| 21 position: relative; |
| 22 top: 1in; |
| 23 width: 1in; |
| 24 } |
| 25 </style> |
| 26 </head> |
| 27 <body> |
| 28 <p>Test passes if, after scrolling down, all four edges of a blue square
are visible.</p> |
| 29 <div id="div1"> |
| 30 <div></div> |
| 31 </div> |
| 32 </body> |
| 33 </html> |
| OLD | NEW |