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

Unified Diff: third_party/WebKit/LayoutTests/fast/table/layout-section-when-table-height-changes.html

Issue 2701163002: Avoid pathological layout on nested percent height tables (Closed)
Patch Set: bug 687061 Created 3 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
Index: third_party/WebKit/LayoutTests/fast/table/layout-section-when-table-height-changes.html
diff --git a/third_party/WebKit/LayoutTests/fast/table/layout-section-when-table-height-changes.html b/third_party/WebKit/LayoutTests/fast/table/layout-section-when-table-height-changes.html
new file mode 100644
index 0000000000000000000000000000000000000000..4b94b91c72af8303c170f2f9dd24da3dcbaa7603
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/layout-section-when-table-height-changes.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<style>
+table {
+ table-layout: fixed;
+ height: 100%;
+ width: 100%;
+}
+</style>
+<p> crbug.com/691968: There should be no scrollbar. </p>
+<div id="container" style="width: 400px; height: 400px; overflow: auto; overflow-x: hidden;">
+ <table id="table" data-expected-height=200>
+ <colgroup>
+ <col style="width: 1161px;">
+ </colgroup>
+ <tbody>
+ <tr>
+ <td></td>
+ </tr>
+ </tbody>
+ </table>
+</div>
+<div id="results"></div>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script src="../../resources/check-layout-th.js"></script>
+<script>
+ document.body.offsetTop;
+ document.getElementById("container").style.height = "200px";
+ checkLayout('#table', results);
+</script>

Powered by Google App Engine
This is Rietveld 408576698