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

Unified Diff: third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-item-grid-container-percentage-rows.html

Issue 2154593003: [css-grid] Fix indefinite height detection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Check skipContainingBlockForPercentHeightCalculation() Created 4 years, 4 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/css-grid-layout/grid-item-grid-container-percentage-rows.html
diff --git a/third_party/WebKit/LayoutTests/fast/css-grid-layout/flex-item-grid-container-percentage-rows.html b/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-item-grid-container-percentage-rows.html
similarity index 53%
copy from third_party/WebKit/LayoutTests/fast/css-grid-layout/flex-item-grid-container-percentage-rows.html
copy to third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-item-grid-container-percentage-rows.html
index 906913d8cbf3c842b56671c8f130eff8eacadfbe..b77d9cc8a3dc19265a298097ad1bb9aca7525bf4 100644
--- a/third_party/WebKit/LayoutTests/fast/css-grid-layout/flex-item-grid-container-percentage-rows.html
+++ b/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-item-grid-container-percentage-rows.html
@@ -1,36 +1,31 @@
<!DOCTYPE html>
-<link href="resources/grid.css" rel="stylesheet">
<style>
-.flex {
- display: flex;
- flex-direction: column;
+.outerGrid {
+ display: grid;
width: 200px;
height: 200px;
border: 5px solid;
-}
-
-.flexitem {
- flex: 1;
+ grid: 200px / 200px;
background: magenta;
}
-.grid {
+.innerGrid {
display: grid;
grid: 50% / 1fr;
}
-.griditem {
+.gridItem {
background: cyan;
}
</style>
-<p>This test checks that percentage rows are properly resolved for a grid container that is a flex item with a definite height.</p>
+<p>This test checks that percentage rows are properly resolved for a grid container that is a stretched grid item.</p>
<p>Test passes if you see a 200x200 box with top half cyan and bottom half magenta.</p>
-<div class="flex">
- <div class="flexitem grid">
- <div class="griditem"></div>
+<div class="outerGrid">
+ <div class="innerGrid">
+ <div class="gridItem"></div>
</div>
</div>

Powered by Google App Engine
This is Rietveld 408576698