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

Unified Diff: third_party/WebKit/LayoutTests/fast/table/percent-height-content-in-fixed-height-cell-and-fixed-height-from-row.html

Issue 2441373002: Percent height content should respect the height of its containing cell (Closed)
Patch Set: bug 637811 Created 4 years, 1 month 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/percent-height-content-in-fixed-height-cell-and-fixed-height-from-row.html
diff --git a/third_party/WebKit/LayoutTests/fast/table/percent-height-content-in-fixed-height-cell-and-fixed-height-from-row.html b/third_party/WebKit/LayoutTests/fast/table/percent-height-content-in-fixed-height-cell-and-fixed-height-from-row.html
new file mode 100644
index 0000000000000000000000000000000000000000..ef9d6d50565e8cef335f27e60ab406bc4698a531
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/percent-height-content-in-fixed-height-cell-and-fixed-height-from-row.html
@@ -0,0 +1,36 @@
+<!DOCTYPE HTML>
+<style>
+#test {
+ background-color: green;
+ padding: 0px;
+ margin: 0px;
+ width: 50px;
+}
+.full {
+ height: 100%;
+ width: 100%;
+}
+.fixed {
+ height: 1px;
+}
+</style>
+<p>crbug.com/637811: There should be a green box below.</p>
+<table style="width: 50px;">
+ <tr style="height: 50px;">
+ <td class="fixed">
+ <table id="test" class="full" data-expected-height=48 data-expected-width=50></table>
+ </td>
+ </tr>
+</table>
+<p>crbug.com/637811: There should be a green box below.</p>
+<table style="width: 50px;">
+ <tr style="height: 50px;">
+ <td class="fixed">
+ <div id="test" class="full" data-expected-height=48 data-expected-width=50></div>
+ </td>
+ </tr>
+</table>
+<script src="../../resources/check-layout.js"></script>
+<script>
+ checkLayout("#test");
+</script>

Powered by Google App Engine
This is Rietveld 408576698