| <table><td style="font: Ahem; width: 10px">FAIL</td></table> |
| <script> |
| if (window.testRunner) |
| testRunner.dumpAsText(); |
| // crbug.com/290399 reported that offsetWidth on a table cell |
| // would incorrectly return the specified width instead of the layout-expanded width. |
| // When this would fail, it would be 12px instead of the 36px 'FAIL' expands to in Ahem. |
| var width = document.getElementsByTagName('td')[0].offsetWidth; |
| document.body.textContent = (width == 36 ? "PASS" : "FAIL") + " (" + width + "px)"; |
| </script> |