position-relative-021

Relative positioning and overflow: scroll

WeasyPrint

This browser

Flags
interact
Assertion
If relative positioning causes overflow the user agent needs to provide a scrolling mechanism to all of the content at its offset position.

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 3     <head>
 4         <title>CSS Test: Relative positioning and overflow: scroll</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#positioning-scheme">
 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: scroll;
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 the blue box are visible.</p>
29         <div id="div1">
30             <div></div>
31         </div>
32     </body>
33 </html>