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

Unified Diff: LayoutTests/fast/table/empty-cells-spread.html

Issue 988443003: Don't add artifical 1 pixel width to empty tables (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 5 years, 6 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: LayoutTests/fast/table/empty-cells-spread.html
diff --git a/LayoutTests/fast/table/empty-cells-spread.html b/LayoutTests/fast/table/empty-cells-spread.html
new file mode 100644
index 0000000000000000000000000000000000000000..02683245f6b01ecf188fcf6dcd337acfe84aa2c0
--- /dev/null
+++ b/LayoutTests/fast/table/empty-cells-spread.html
@@ -0,0 +1,19 @@
+<!DOCTYPE HTML>
+<style>
+ table { border-collapse: collapse; width: 100%; }
+ #green { background-color: green; padding: 0;}
+ #blue { background-color: blue; padding: 0;}
+ div { height: 10px; }
+</style>
+<script src="../../resources/check-layout.js"></script>
+<div style="width: 500px">
+ <table>
+ <td id="green" data-expected-width=250></td>
+ <td id="blue" data-expected-width=250><div></div></td>
+ </table>
+</div>
+<p> crbug.com/476370: Test empty cells get appropriate width when spread across a percent width table. </p>
+<div id="console"></div>
+<script>
+ checkLayout('td', document.getElementById('console'));
+</script>

Powered by Google App Engine
This is Rietveld 408576698