| <table><td style="font-family: Ahem; width: 5px">x</td></table> | |
| <script> | |
| if (window.testRunner) | |
| testRunner.dumpAsText(); | |
| var width = document.getElementsByTagName('td')[0].offsetWidth; | |
| document.body.innerText = 'This tests obtaining the offsetWidth of a layout-dependent table cell.\n' | |
| + 'The td with width set to 5px should be expanded to have the wider width:\n' | |
| + width + 'px'; | |
| </script> |