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

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: 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <link href="resources/grid.css" rel="stylesheet">
5 <script src="../../resources/check-layout.js"></script>
6 <style>
7 body {
8 margin: 0;
9 }
10
11 .container {
12 position: relative;
13 }
14
15 .fixedWidth {
16 width: 150px;
17 }
18
19 .fixedHeight {
20 height: 150px;
21 }
22
23 .grid {
24 font: 10px/1 Ahem;
25 align-items: start;
26 justify-items: start;
27 }
28 </style>
29 </head>
30 <body onload="checkLayout('.grid')">
31
32 <p>This test checks that grid items positioning works as expected with orthogona l flows.</p>
33
34 <p>HORIZONTAL-TB container with VERTICAL-RL items.</p>
35 <div class="container">
36 <div class="grid fixedWidth" data-expected-width="150" data-expected-height= "260">
37 <div class="firstRowFirstColumn verticalRL" data-offset-x="0" data-off set-y="0" data-expected-width="10" data-expected-height="130">XXXXXXXXXXXXX</div >
38 <div class="firstRowSecondColumn verticalRL" data-offset-x="10" data-of fset-y="0" data-expected-width="10" data-expected-height="70">XXXXXXX</div>
39 <div class="secondRowFirstColumn verticalRL" data-offset-x="0" data-off set-y="130" data-expected-width="10" data-expected-height="130">XXXXXXXXXXXXX</d iv>
40 <div class="secondRowSecondColumn verticalRL" data-offset-x="10" data-of fset-y="130" data-expected-width="10" data-expected-height="70">XXXXXXX</div>
41 </div>
42 </div>
43
44 <p>VERTICAL-RL container with HORIZONTAL-TB items.</p>
45 <div class="container">
46 <div class="grid fixedHeight verticalRL" data-expected-width="260" data-expe cted-height="150">
47 <div class="firstRowFirstColumn horizontalTB" data-offset-x="130" data -offset-y="0" data-expected-width="130" data-expected-height="10">XXXXXXXXXXXXX< /div>
48 <div class="firstRowSecondColumn horizontalTB" data-offset-x="190" data -offset-y="10" data-expected-width="70" data-expected-height="10">XXXXXXX</div>
49 <div class="secondRowFirstColumn horizontalTB" data-offset-x="0" data-o ffset-y="0" data-expected-width="130" data-expected-height="10">XXXXXXXXXXXXX</d iv>
50 <div class="secondRowSecondColumn horizontalTB" data-offset-x="60" data- offset-y="10" data-expected-width="70" data-expected-height="10">XXXXXXX</div>
51 </div>
52 </div>
53
54 </body>
55 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698