Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(713)

Side by Side Diff: LayoutTests/fast/table/table-size-integer-overflow.html

Issue 10583010: Merge 120257 - Padding and borders can cause integer overflow in block layouts (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1132/
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script> 3 <script>
4 window.onload = function() { 4 window.onload = function() {
5 if (window.layoutTestController) 5 if (window.layoutTestController)
6 window.layoutTestController.dumpAsText(); 6 window.layoutTestController.dumpAsText();
7 7
8 var cell = document.getElementById("cell"); 8 var cell = document.getElementById("cell");
9 var text = cell.firstElementChild; 9 var text = cell.firstElementChild;
10 var wdiff = cell.offsetWidth - text.offsetWidth - (parseInt(window.getComputed Style(cell).getPropertyValue('padding-right')) + 10 var wdiff = cell.offsetWidth - text.offsetWidth - (parseInt(window.getComputed Style(cell).getPropertyValue('padding-right')) +
(...skipping 10 matching lines...) Expand all
21 <td></td> 21 <td></td>
22 <td id="cell" style="background-color: green; width: 100%; height: 30px"> 22 <td id="cell" style="background-color: green; width: 100%; height: 30px">
23 <span>FAIL</span> 23 <span>FAIL</span>
24 </td> 24 </td>
25 </tr> 25 </tr>
26 </table> 26 </table>
27 </div> 27 </div>
28 <div style="clear: left;">The green box should be the full width of the page.</d iv> 28 <div style="clear: left;">The green box should be the full width of the page.</d iv>
29 </body> 29 </body>
30 </html> 30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698