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

Unified Diff: third_party/WebKit/LayoutTests/fast/table/remove-cell-with-border-box.html

Issue 2173163003: [css-tables] Mark sibling cells dirty when a cell is removed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mark fast/repaint/table-collapsed-border.html NeedsRebaseline 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/table/remove-cell-with-border-box.html
diff --git a/third_party/WebKit/LayoutTests/fast/table/remove-cell-with-border-box.html b/third_party/WebKit/LayoutTests/fast/table/remove-cell-with-border-box.html
new file mode 100644
index 0000000000000000000000000000000000000000..191cdf138d3459142895bc5cc3ea3012162392ab
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/remove-cell-with-border-box.html
@@ -0,0 +1,28 @@
+<!doctype html>
+<style>
+ td {
+ width: 50px;
+ height: 50px;
+ padding: 0px;
+ background: lime;
+ box-sizing: border-box;
+ }
+ td div {
+ display: inline-block;
+ width: 22px;
+ height: 5px;
+ background: orange;
+ }
+</style>
+<script src="../../resources/run-after-layout-and-paint.js"></script>
+<script type="text/javascript">
+ runAfterLayoutAndPaint(() => theRow.removeChild(cellToRemove), true);
+</script>
+<p>Removing the left cell with a big border should give the remaining cells enough space to put the orange inline-blocks on the same line.</p>
+<table style="border-collapse:collapse">
+ <tr id="theRow">
+ <td><div></div> <div></div></td>
+ <td style="border:18px solid red" id="cellToRemove"></td>
+ <td><div></div> <div></div></td>
+ </tr>
+</table>

Powered by Google App Engine
This is Rietveld 408576698