[css-grid] Import additional grid layout tests and update TestExpectations
[WebKit-https.git] / LayoutTests / fast / css-grid-layout / grid-self-baseline-horiz-06.html
1 <!DOCTYPE html>
2 <link href="resources/grid.css" rel="stylesheet">
3 <link href="resources/grid-alignment.css" rel="stylesheet">
4 <style>
5 body { margin: 0; }
6 .block {
7    background: grey;
8    float: left;
9    margin: 5px;
10    text-orientation: sideways;
11    height: 350px;
12 }
13 .block > :nth-child(1) { font-size:24px; }
14 .block > :nth-child(2) { font-size:32px; }
15 .block > :nth-child(3) { font-size:48px; }
16 .block > :nth-child(4) { font-size:64px; }
17 .item {
18    border-width: 2px 5px 3px 4px;
19    border-style: solid;
20    padding: 6px 3px 7px 8px;
21    margin: 10px 6px 4px 12px;
22 }
23 .extraLeftPadding { padding-left: 30px; }
24 .extraRightPadding { padding-right: 30px; }
25 .column { grid-auto-flow: row }
26 </style>
27
28 <p>4x1 with orthogonal items.<br>No item shares any row-like Baseline Context. All items share 'first-column' Baseline Context.<br>Items participate in both, column and row baseline, but since they only share a column-like Baseline Context only 'justify-self' (row baseline-axis) should apply.<br>The Baseline Alignment may increase size contribution of some items.</p>
29 <div class="block grid column contentStart itemsBaseline">
30     <div class="item verticalLR">A</div>
31     <div class="item verticalLR">A</div>
32     <div class="item verticalLR">A</div>
33     <div class="item verticalLR">A</div>
34 </div>
35 <div class="block grid column contentStart itemsBaseline">
36     <div class="item verticalLR extraLeftPadding">A</div>
37     <div class="item verticalLR extraRightPadding ">A</div>
38     <div class="item verticalLR">A</div>
39     <div class="item verticalLR">A</div>
40 </div>
41 <div class="block grid column contentStart itemsBaseline">
42     <div class="item verticalRL">A</div>
43     <div class="item verticalRL">A</div>
44     <div class="item verticalRL">A</div>
45     <div class="item verticalRL">A</div>
46 </div>
47 <div class="block grid column contentStart itemsBaseline">
48     <div class="item verticalRL extraLeftPadding">A</div>
49     <div class="item verticalRL extraRightPadding ">A</div>
50     <div class="item verticalRL">A</div>
51     <div class="item verticalRL">A</div>
52 </div>