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

Unified Diff: third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-item-sizing-with-orthogonal-flows.html

Issue 815833005: [css-grid] Handle min-content/max-content with orthogonal flows (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Comments and assertions to make the code clearer. Created 4 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: third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-item-sizing-with-orthogonal-flows.html
diff --git a/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-item-sizing-with-orthogonal-flows.html b/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-item-sizing-with-orthogonal-flows.html
new file mode 100644
index 0000000000000000000000000000000000000000..e90aa7125b4b9c14c2d9dfa04758cf5123269e41
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-item-sizing-with-orthogonal-flows.html
@@ -0,0 +1,51 @@
+<!DOCTYPE html>
+<link href="resources/grid.css" rel="stylesheet">
+<link href="resources/grid-alignment.css" rel="stylesheet">
+<style>
+body {
+ margin: 0;
+}
+.grid {
+ font: 10px/1 Ahem;
+ width: 300px;
+ height: 80px;
+ position: relative;
+ grid-template-columns: minmax(min-content, max-content);
+ grid-template-rows: minmax(min-content, max-content);
+}
+</style>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script src="../../resources/check-layout-th.js"></script>
+<body onload="checkLayout('.grid')">
+<div id="log"></div>
+<p>This test checks that grid items sizing works as regular block sizing with orthogonal flows.</p>
+
+<div>
+ <p>HORIZONTAL-TB container with VERTICAL-LR items.</p>
+ <div class="grid">
+ <div class="sizedToGridArea verticalLR firstRowFirstColumn" data-offset-x="0" data-offset-y="0" data-expected-width="20" data-expected-height="80">X X X X X X</div>
+ </div>
+</div>
+
+<div>
+ <p>HORIZONTAL-TB container with VERTICAL-RL items.</p>
+ <div class="grid itemsStart">
+ <div class="sizedToGridArea verticalRL firstRowFirstColumn" data-offset-x="0" data-offset-y="0" data-expected-width="20" data-expected-height="80">X X X X X X</div>
+ </div>
+</div>
+
+<div>
+ <p>VERTICAL-LR container with HORIZONTAL-TB items.</p>
+ <div class="grid itemsStart verticalLR">
+ <div class="sizedToGridArea firstRowFirstColumn horizontalTB" data-offset-x="0" data-offset-y="0" data-expected-width="110" data-expected-height="10">X X X X X X</div>
+ </div>
+</div>
+
+<div>
+ <p>VERTICAL-RL container with HORIZONTAL-TB items.</p>
+ <div class="grid itemsStart verticalRL">
+ <div class="sizedToGridArea firstRowFirstColumn horizontalTB" data-offset-x="190" data-offset-y="0" data-expected-width="110" data-expected-height="10">X X X X X X</div>
+ </div>
+</div>
+</body>

Powered by Google App Engine
This is Rietveld 408576698