Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / table / table-size-integer-overflow.html
blob8ca40be0727eda0bd0261ec3b9cea89272314375
1 <html>
2 <head>
3 <script>
4 window.onload = function() {
5 if (window.testRunner)
6 window.testRunner.dumpAsText();
8 var cell = document.getElementById("cell");
9 var text = cell.firstElementChild;
10 var wdiff = cell.offsetWidth - text.offsetWidth - (parseInt(window.getComputedStyle(cell).getPropertyValue('padding-right')) +
11 parseInt(window.getComputedStyle(cell).getPropertyValue('padding-left')));
12 if (wdiff > 0)
13 text.innerText = "PASS";
15 </script>
16 </head>
17 <body>
18 <div style="float: left;">
19 <table style="margin: 1px">
20 <tr>
21 <td></td>
22 <td id="cell" style="background-color: green; width: 100%; height: 30px">
23 <span>FAIL</span>
24 </td>
25 </tr>
26 </table>
27 </div>
28 <div style="clear: left;">The green box should be the full width of the page.</div>
29 </body>
30 </html>