overflow-scrollbar-001

Scrollbar placement in overflow scenario

WeasyPrint

This browser

Assertion
The placement of the scrollbar is between the inner border edge and the outer padding edge.

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: Scrollbar placement in overflow scenario</title>
 5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
 6         <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#overflow">
 7         <meta name="flags" content="">
 8         <meta name="assert" content="The placement of the scrollbar is between the inner border edge and the outer padding edge.">
 9         <style type="text/css">
10             #div1
11             {
12                 border: solid blue;
13                 overflow: scroll;
14                 padding: 10px;
15             }
16             div div
17             {
18                 background-color: black;
19                 border: solid;
20                 height: 10px;
21             }
22         </style>
23     </head>
24     <body>
25         <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>
26         <p>Test passes if the scrollbars are contained inside the blue box and each scrollbar has white space between it and the black box within.</p>
27         <div id="div1">
28             <div></div>
29         </div>
30     </body>
31 </html>