overflow-ancestors-001.xht (1121B)
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 affect on children</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="interact" /> 8 <meta name="assert" content="Overflow clipping does not affect elements which are ancestors to the element being clipped." /> 9 <style type="text/css"> 10 #div1 11 { 12 border: solid; 13 height: 50px; 14 overflow: scroll; 15 width: 100px; 16 } 17 div div 18 { 19 width: 200px; 20 } 21 </style> 22 </head> 23 <body> 24 <p>Test passes if there is an active scrolling mechanism in the box below that can horizontally scroll the "Filler Text".</p> 25 <div id="div1"> 26 <div>Filler Text</div> 27 </div> 28 </body> 29 </html>