overflow-003.xht (1494B)
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: Overflow set to 'scroll'</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#propdef-overflow" /> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#overflow" /> 8 <meta name="flags" content="interact" /> 9 <meta name="assert" content="The 'overflow' property set to 'scroll' properly applies a scrolling mechanism to access overflowing content." /> 10 <style type="text/css"> 11 #div1 12 { 13 height: 1in; 14 overflow: scroll; 15 width: 1in; 16 } 17 div div 18 { 19 height: 2in; 20 position: relative; 21 width: 2in; 22 } 23 div div div 24 { 25 background: green; 26 bottom: 0; 27 height: 20px; 28 position: absolute; 29 right: 0; 30 width: 20px; 31 } 32 </style> 33 </head> 34 <body> 35 <p>Test passes if the box below can be scrolled to the green square in the bottom-right corner.</p> 36 <div id="div1"> 37 <div> 38 <div></div> 39 </div> 40 </div> 41 </body> 42 </html>