1564308.html (952B)
1 <!DOCTYPE HTML> 2 <html><head> 3 <meta charset="utf-8"> 4 <title>Testcase for bug 1564308</title> 5 <style type="text/css"> 6 7 html { overflow: scroll } /* suppress resizes for scrollbars */ 8 9 </style> 10 </head> 11 <body style="height: 300px"> 12 13 <div style="display:inline"> 14 <table border="1" style="display:inline-table; vertical-align: top;"> 15 <tbody style="visibility: collapse;"> 16 <tr><td></td></tr> 17 <tr><td></td></tr> 18 <tr><td></td></tr> 19 <tr><td></td></tr> 20 <tr><td></td></tr> 21 </tbody> 22 <tbody> 23 <tr><td>Hello</td></tr> 24 </tbody> 25 </table> 26 </div> 27 28 <script> 29 30 // This, plus the use of an inline-table wrapped by an inline, is a relatively 31 // complicated setup to cause the table to be reflowed while it is not dirty, 32 // has no dirty descendants, and is not vertically or horizontally resizing, so 33 // that nsTableFrame::Reflow will skip the main part of the function. 34 document.body.offsetWidth; 35 document.body.style.width = "20em"; 36 37 </script> 38 39 </body> 40 </html>