mitz@apple.com | 4380383 | 2007-12-19 21:45:56 +0000 | [diff] [blame] | 1 | <!DOCTYPE HTML> |
| 2 | <html> |
| 3 | <head> |
| 4 | <script> |
| 5 | function test() |
| 6 | { |
| 7 | document.body.offsetTop; |
| 8 | document.getElementById("inner").style.height = "100px"; |
| 9 | } |
| 10 | </script> |
| 11 | </head> |
| 12 | <body onload="test()"> |
| 13 | <div style="height: 200px;"> |
| 14 | <div style="height: auto;"> |
| 15 | <div style="width: 100px; height: 1%; overflow: hidden; background-color: white;"> |
| 16 | <div id="inner" style="height: 0;"></div> |
| 17 | </div> |
| 18 | </div> |
| 19 | <div style="width: 100px; height: 100px; background-color: green;"></div> |
| 20 | </div> |
| 21 | </body> |
| 22 | </html> |