Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / table / table-cell-offset-width.html
blob79172ab8bb6fb670d5341742bc361bf934cd5ab7
1 <script src="../../resources/ahem.js"></script>
2 <table><td style="font-family: Ahem; width: 10px">FAIL</td></table>
3 <script>
4 if (window.testRunner)
5 testRunner.dumpAsText();
6 // crbug.com/290399 reported that offsetWidth on a table cell
7 // would incorrectly return the specified width instead of the layout-expanded width.
8 // When this would fail, it would be 12px instead of the 66px 'FAIL' expands to in Ahem.
9 var width = document.getElementsByTagName('td')[0].offsetWidth;
10 document.body.textContent = (width == 66 ? "PASS" : "FAIL") + " (" + width + "px)";
11 </script>