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

Unified Diff: third_party/WebKit/LayoutTests/fast/table/percent-height-content-in-fixed-height-cell.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.html
diff --git a/third_party/WebKit/LayoutTests/fast/table/percent-height-content-in-fixed-height-cell.html b/third_party/WebKit/LayoutTests/fast/table/percent-height-content-in-fixed-height-cell.html
new file mode 100644
index 0000000000000000000000000000000000000000..307803538f63b93defc3a9c0715048b57e05a4a8
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/percent-height-content-in-fixed-height-cell.html
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<style>
+table {
+ width: 250px;
+}
+
+td {
+ width: 242px;
+}
+
+.cell-specified-height {
+ height: 202px;
+}
+
+.container {
+ height: 100%;
+ overflow-y: hidden;
+}
+.content {
+ background-color: black;
+ height: 2000px;
+ width: 225px;
+}
+</style>
+<table>
+ <td class="cell-specified-height">
+ <div class="container" data-expected-height=2000>
+ <div class="content"></div>
+ </div>
+ </td>
+</table>
+<script src="../../resources/check-layout.js"></script>
+<p> crbug.com/465096: Percent height content in a cell with a computed height should use the height of the cell. </p>
+<div id="output"></div>
+<script>
+document.body.offsetTop;
+checkLayout('.container', output);
+</script>

Powered by Google App Engine
This is Rietveld 408576698