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

Unified Diff: LayoutTests/fast/table/empty-cells-and-percentage-width-content.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-and-percentage-width-content.html
diff --git a/LayoutTests/fast/table/empty-cells-and-percentage-width-content.html b/LayoutTests/fast/table/empty-cells-and-percentage-width-content.html
new file mode 100644
index 0000000000000000000000000000000000000000..44fcb6399b37346299f3dd9e60340c132fac16b5
--- /dev/null
+++ b/LayoutTests/fast/table/empty-cells-and-percentage-width-content.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<style>
+.container{width:170px;height:19px}
+.input{border:none; padding: 0; width: 100%; margin: 0; background-color: blue;}
+.count{padding:0 8px 0 4px;}
+</style>
+<script src="../../resources/check-layout.js"></script>
+<div class="container">
+ <table cellpadding="0">
+ <tr>
+ <td>
+ <input type="text" class="input">
+ </td>
+ <td class="count" data-expected-width=12></td>
+ </tr>
+ </table>
+</div>
+<p> crbug.com/497759: Cells with replaced content should get the right width. </p>
+<div id="console"></div>
+<script>
+ checkLayout('.count', document.getElementById('console'));
+</script>

Powered by Google App Engine
This is Rietveld 408576698