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

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

Issue 2160363003: [css-tables] Mark sibling cells dirty when cell border width changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 background: lime;
8 }
9 </style>
10 <script src="../../resources/check-layout.js"></script>
11 <script src="../../resources/run-after-layout-and-paint.js"></script>
12 <script type="text/javascript">
13 function shrinkCellBorder() {
14 middleCell.style.borderWidth = "4px";
15 checkLayout("table");
16 }
17 runAfterLayoutAndPaint(shrinkCellBorder, true);
18 </script>
19 <p>Changing a cell's collapsed border's width should change the width of the sib ling cells and the table.</p>
20 <p>There should be 3 squares. Outer two are lime, middle one is blue with a ligh tblue border.</p>
21 <p>Firefox 50.0a1 (nightly 2016-07-19) fails this, so it should probably be upst reamed, except it uses chrome-specific `runAfterLayoutAndPaint`.</p>
22 <table style="border-collapse:collapse" data-expected-width=158 data-expected-he ight=58>
23 <tr>
24 <td data-expected-width=52></td>
25 <td style="background:blue; border:18px solid lightblue" id="middleCell" dat a-expected-width=54></td>
26 <td data-expected-width=52></td>
27 </tr>
28 </table>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698