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

Side by Side 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: Utility functions for orthogonality. Created 5 years, 10 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <link href="resources/grid.css" rel="stylesheet">
3 <script src="../../resources/check-layout.js"></script>
4 <style>
5 body {
6 margin: 0;
7 }
8
9 .container {
10 position: relative;
11 }
12
13 .grid {
14 font: 10px/1 Ahem;
15 width: 300px;
16 height: 160px;
17 align-items: start;
18 justify-items: start;
19 }
20 </style>
21 <body onload="checkLayout('.grid')">
22
23 <p>This test checks that grid items positioning works as expected with orthogona l flows.</p>
24
25 <p>HORIZONTAL-TB container with VERTICAL-LR items.</p>
26 <div class="container">
27 <div class="grid fixedWidth" data-expected-width="300" data-expected-height= "160">
28 <div class="firstRowFirstColumn verticalLR" data-offset-x="0" data-of fset-y="0" data-expected-width="20" data-expected-height="80">X X X X X X</div>
29 <div class="firstRowSecondColumn verticalLR" data-offset-x="20" data-of fset-y="0" data-expected-width="20" data-expected-height="80">X X X X X X</div>
30 <div class="secondRowFirstColumn verticalLR" data-offset-x="0" data-of fset-y="80" data-expected-width="20" data-expected-height="80">X X X X X X</div>
31 <div class="secondRowSecondColumn verticalLR" data-offset-x="20" data-of fset-y="80" data-expected-width="20" data-expected-height="80">X X X X X X</div>
32 </div>
33 </div>
34
35 <p>HORIZONTAL-TB container with VERTICAL-RL items.</p>
36 <div class="container">
37 <div class="grid" data-expected-width="300" data-expected-height="160">
38 <div class="firstRowFirstColumn verticalRL" data-offset-x="0" data-of fset-y="0" data-expected-width="20" data-expected-height="80">X X X X X X</div>
39 <div class="firstRowSecondColumn verticalRL" data-offset-x="20" data-of fset-y="0" data-expected-width="20" data-expected-height="80">X X X X X X</div>
40 <div class="secondRowFirstColumn verticalRL" data-offset-x="0" data-of fset-y="80" data-expected-width="20" data-expected-height="80">X X X X X X</div>
41 <div class="secondRowSecondColumn verticalRL" data-offset-x="20" data-of fset-y="80" data-expected-width="20" data-expected-height="80">X X X X X X</div>
42 </div>
43 </div>
44
45 <p>VERTICAL-LR container with HORIZONTAL-TB items.</p>
46 <div class="container">
47 <div class="grid fixedHeight verticalLR" data-expected-width="300" data-expe cted-height="160">
48 <div class="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>
49 <div class="firstRowSecondColumn horizontalTB" data-offset-x="0" data-o ffset-y="10" data-expected-width="110" data-expected-height="10">X X X X X X</di v>
50 <div class="secondRowFirstColumn horizontalTB" data-offset-x="110" da ta-offset-y="0" data-expected-width="110" data-expected-height="10">X X X X X X </div>
51 <div class="secondRowSecondColumn horizontalTB" data-offset-x="110" data -offset-y="10" data-expected-width="110" data-expected-height="10">X X X X X X</ div>
52 </div>
53 </div>
54
55 <p>VERTICAL-RL container with HORIZONTAL-TB items.</p>
56 <div class="container">
57 <div class="grid fixedHeight verticalRL" data-expected-width="300" data-expe cted-height="160">
58 <div class="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>
59 <div class="firstRowSecondColumn horizontalTB" data-offset-x="190" da ta-offset-y="10" data-expected-width="110" data-expected-height="10">X X X X X X </div>
60 <div class="secondRowFirstColumn horizontalTB" data-offset-x="80" data- offset-y="0" data-expected-width="110" data-expected-height="10">X X X X X X</d iv>
61 <div class="secondRowSecondColumn horizontalTB" data-offset-x="80" dat a-offset-y="10" data-expected-width="110" data-expected-height="10">X X X X X X< /div>
62 </div>
63 </div>
64 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698