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

Unified Diff: LayoutTests/fast/css-grid-layout/grid-item-positioning-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: Solving positioning issues. Created 5 years, 11 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: LayoutTests/fast/css-grid-layout/grid-item-positioning-with-orthogonal-flows.html
diff --git a/LayoutTests/fast/css-grid-layout/grid-item-positioning-with-orthogonal-flows.html b/LayoutTests/fast/css-grid-layout/grid-item-positioning-with-orthogonal-flows.html
new file mode 100644
index 0000000000000000000000000000000000000000..5eee368d0630d1b5ea0581ba3c40b97d54c440ca
--- /dev/null
+++ b/LayoutTests/fast/css-grid-layout/grid-item-positioning-with-orthogonal-flows.html
@@ -0,0 +1,55 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="resources/grid.css" rel="stylesheet">
+<script src="../../resources/check-layout.js"></script>
+<style>
+body {
+ margin: 0;
+}
+
+.container {
+ position: relative;
+}
+
+.fixedWidth {
+ width: 150px;
+}
+
+.fixedHeight {
+ height: 150px;
+}
+
+.grid {
+ font: 10px/1 Ahem;
+ align-items: start;
+ justify-items: start;
+}
+</style>
+</head>
+<body onload="checkLayout('.grid')">
+
+<p>This test checks that grid items positioning works as expected with orthogonal flows.</p>
+
+<p>HORIZONTAL-TB container with VERTICAL-RL items.</p>
+<div class="container">
+ <div class="grid fixedWidth" data-expected-width="150" data-expected-height="260">
+ <div class="firstRowFirstColumn verticalRL" data-offset-x="0" data-offset-y="0" data-expected-width="10" data-expected-height="130">XXXXXXXXXXXXX</div>
+ <div class="firstRowSecondColumn verticalRL" data-offset-x="10" data-offset-y="0" data-expected-width="10" data-expected-height="70">XXXXXXX</div>
+ <div class="secondRowFirstColumn verticalRL" data-offset-x="0" data-offset-y="130" data-expected-width="10" data-expected-height="130">XXXXXXXXXXXXX</div>
+ <div class="secondRowSecondColumn verticalRL" data-offset-x="10" data-offset-y="130" data-expected-width="10" data-expected-height="70">XXXXXXX</div>
+ </div>
+</div>
+
+<p>VERTICAL-RL container with HORIZONTAL-TB items.</p>
+<div class="container">
+ <div class="grid fixedHeight verticalRL" data-expected-width="260" data-expected-height="150">
+ <div class="firstRowFirstColumn horizontalTB" data-offset-x="130" data-offset-y="0" data-expected-width="130" data-expected-height="10">XXXXXXXXXXXXX</div>
+ <div class="firstRowSecondColumn horizontalTB" data-offset-x="190" data-offset-y="10" data-expected-width="70" data-expected-height="10">XXXXXXX</div>
+ <div class="secondRowFirstColumn horizontalTB" data-offset-x="0" data-offset-y="0" data-expected-width="130" data-expected-height="10">XXXXXXXXXXXXX</div>
+ <div class="secondRowSecondColumn horizontalTB" data-offset-x="60" data-offset-y="10" data-expected-width="70" data-expected-height="10">XXXXXXX</div>
+ </div>
+</div>
+
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698