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

Unified Diff: third_party/WebKit/LayoutTests/fast/table/auto-table-columns-dont-scale.html

Issue 1682453004: Treat <table> widths of 0 as auto. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename test; factor out isAuto method Created 4 years, 10 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/table/auto-table-columns-dont-scale-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/table/auto-table-columns-dont-scale.html
diff --git a/third_party/WebKit/LayoutTests/fast/table/auto-table-columns-dont-scale.html b/third_party/WebKit/LayoutTests/fast/table/auto-table-columns-dont-scale.html
new file mode 100644
index 0000000000000000000000000000000000000000..aade924b15bfe44dc3b5c8e49f8bf2163aeed2c9
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/auto-table-columns-dont-scale.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<style>
+td { padding: 0px; }
+table { border-spacing: 0px; }
+.yellow { background-color: yellow; }
+.red { background-color: red; }
+.green { background-color: green; }
+</style>
+</head>
+This test passes if no red is showing.
+<table id="outerTable" style="width:0px;" class="yellow" data-expected-width="200">
+ <tr>
+ <td>
+ <table class="red">
+ <tr>
+ <td style="width:50%;">
+ <div style="width:200px;height:20px" class="green"></div>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+<script src="../../resources/check-layout.js"></script>
+<script>
+checkLayout('#outerTable');
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/table/auto-table-columns-dont-scale-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698