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