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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/table/change-tbody-border-width.html

Issue 2013693002: [css-tables] Set table and cell widths dirty when section border changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: handle case where row is null Created 4 years, 5 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
(Empty)
1 <!doctype html>
2 <style>
3 td {
4 width: 50px;
5 height: 50px;
6 padding: 0px;
7 }
8 </style>
9 <script src="../../resources/check-layout.js"></script>
10 <script src="../../resources/run-after-layout-and-paint.js"></script>
11 <script type="text/javascript">
12 function shrinkSectionBorder() {
13 document.getElementById("section").style.borderWidth = "4px";
14 checkLayout("div");
15 }
16 runAfterLayoutAndPaint(shrinkSectionBorder, true);
17 </script>
18 <p>Changing a collapsed border's width should change the width of the table and the width of a shrink-to-fit containing block.</p>
19 <p>There should be a square with a 4px inner blue border and a 1px outer black b order.</p>
20 <p>Firefox 50.0a1 (nightly 2016-07-07) fails this, so it should probably be upst reamed, except it uses chrome-specific `runAfterLayoutAndPaint`.</p>
21 <p>The table cell has rowspan=2 because we almost didn't cover the case where a cell's rowspan exceeded the declared rows.</p>
22 <div style="float:left; border: 1px solid black" data-expected-width=60>
23 <table style="border-collapse:collapse" data-expected-width=58 data-expected -height=58>
24 <tbody style="border:18px solid lightblue" id="section">
25 <tr>
26 <td rowspan=2></td>
27 </tr>
28 </tbody>
29 </table>
30 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698