3 <link href=
"resources/grid.css" rel=
"stylesheet">
6 grid-template-columns:
50px
100px;
7 grid-template-rows:
50px
100px;
19 <script src=
"../../resources/check-layout.js"></script>
20 <body onload=
"checkLayout('.grid')">
21 <p>This test checks that the auto-placement algorithm takes 'order' into account when placing grid items.
</p>
23 <!-- Step 1, grid item with a major-axis position that is not 'auto'. -->
24 <div style=
"position: relative">
25 <div class=
"grid gridAutoFlowRowDense">
26 <div class=
"sizedToGridArea firstRowAutoColumn" data-offset-x=
"50" data-offset-y=
"0" data-expected-width=
"100" data-expected-height=
"50"></div>
27 <div class=
"sizedToGridArea firstRowAutoColumn negativeOrder" data-offset-x=
"0" data-offset-y=
"0" data-expected-width=
"50" data-expected-height=
"50"></div>
31 <div style=
"position: relative">
32 <div class=
"grid gridAutoFlowRowDense">
33 <div class=
"sizedToGridArea firstRowAutoColumn positiveOrder" data-offset-x=
"50" data-offset-y=
"0" data-expected-width=
"100" data-expected-height=
"50"></div>
34 <div class=
"sizedToGridArea firstRowAutoColumn" data-offset-x=
"0" data-offset-y=
"0" data-expected-width=
"50" data-expected-height=
"50"></div>
38 <!-- Step 4.1, grid items with a minor-axis position that is not 'auto'. -->
39 <div style=
"position: relative">
40 <div class=
"grid gridAutoFlowColumnDense">
41 <div class=
"sizedToGridArea secondRowAutoColumn" data-offset-x=
"50" data-offset-y=
"50" data-expected-width=
"100" data-expected-height=
"100"></div>
42 <div class=
"sizedToGridArea secondRowAutoColumn negativeOrder" data-offset-x=
"0" data-offset-y=
"50" data-expected-width=
"50" data-expected-height=
"100"></div>
46 <div style=
"position: relative">
47 <div class=
"grid gridAutoFlowColumnDense">
48 <div class=
"sizedToGridArea secondRowAutoColumn positiveOrder" data-offset-x=
"50" data-offset-y=
"50" data-expected-width=
"100" data-expected-height=
"100"></div>
49 <div class=
"sizedToGridArea secondRowAutoColumn" data-offset-x=
"0" data-offset-y=
"50" data-expected-width=
"50" data-expected-height=
"100"></div>
53 <!-- Step 4.2, both minor and major-axis position are 'auto'. -->
54 <div style=
"position: relative">
55 <div class=
"grid gridAutoFlowColumnDense">
56 <div class=
"sizedToGridArea" data-offset-x=
"0" data-offset-y=
"50" data-expected-width=
"50" data-expected-height=
"100"></div>
57 <div class=
"sizedToGridArea negativeOrder" data-offset-x=
"0" data-offset-y=
"0" data-expected-width=
"50" data-expected-height=
"50"></div>
61 <div style=
"position: relative">
62 <div class=
"grid gridAutoFlowColumnDense">
63 <div class=
"sizedToGridArea positiveOrder" data-offset-x=
"0" data-offset-y=
"50" data-expected-width=
"50" data-expected-height=
"100"></div>
64 <div class=
"sizedToGridArea" data-offset-x=
"0" data-offset-y=
"0" data-expected-width=
"50" data-expected-height=
"50"></div>