overflow-scrollbar-001.xht (1304B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 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="assert" content="The placement of the scrollbar is between the inner border edge and the outer padding edge." /> 8 <style type="text/css"> 9 #div1 10 { 11 border: solid blue; 12 overflow: scroll; 13 padding: 10px; 14 } 15 div div 16 { 17 background-color: black; 18 border: solid; 19 height: 10px; 20 } 21 </style> 22 </head> 23 <body> 24 <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> 25 <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> 26 <div id="div1"> 27 <div></div> 28 </div> 29 </body> 30 </html>