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

Unified Diff: third_party/WebKit/LayoutTests/fast/table/change-row-border-width.html

Issue 1952133006: [css-tables] Set table and cell widths dirty when row border width changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/change-row-border-width.html
diff --git a/third_party/WebKit/LayoutTests/fast/table/change-row-border-width.html b/third_party/WebKit/LayoutTests/fast/table/change-row-border-width.html
new file mode 100644
index 0000000000000000000000000000000000000000..8b7f71706845e742fbd7414fef33d984a0f3e60e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/change-row-border-width.html
@@ -0,0 +1,26 @@
+<!doctype html>
+<style>
+ td {
+ width: 50px;
+ height: 50px;
+ padding: 0px;
+ }
+</style>
+<script src="../../resources/check-layout.js"></script>
+<script type="text/javascript">
+ window.testRunner && window.testRunner.waitUntilDone();
+ window.addEventListener("load", changeBorderWidthAndCheck);
+ function changeBorderWidthAndCheck() {
+ requestAnimationFrame(function() {
+ document.getElementById("row").style.borderWidth = "4px";
+ checkLayout("table");
+ window.testRunner && window.testRunner.notifyDone();
mstensho (USE GERRIT) 2016/05/09 08:41:53 I wonder if this could be simplified if you instea
dgrogan 2016/05/16 23:34:16 Beautiful. Done.
+ });
+ }
+</script>
+There should be a square with a 4px blue border.
+<table style="border-collapse:collapse" data-expected-width=58>
mstensho (USE GERRIT) 2016/05/09 08:41:53 Add data-expected-height too?
dgrogan 2016/05/16 23:34:16 Done.
+ <tr style="border:18px solid lightblue" id="row">
+ <td />
+ </tr>
+</table>

Powered by Google App Engine
This is Rietveld 408576698