Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css-grid-layout / grid-item-named-grid-area-resolution.html
blob8d1e28264bb31afe18eda4539b30cc848fd01f84
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <link href="resources/grid.css" rel="stylesheet">
5 <style>
6 .grid {
7 grid-template-rows: [before] 50px [middle] 100px [after] 150px;
8 grid-template-columns: 40px 80px 160px;
11 .gridWithoutRepeat {
12 grid-template-areas: "first second third"
13 "fourth fifth sixth";
16 .gridWithRepeat {
17 grid-template-areas: "first second third"
18 "fourth fourth third";
21 .gridItemFirstArea {
22 grid-area: first;
25 .gridItemSecondArea {
26 grid-area: second;
29 .gridItemThirdArea {
30 grid-area: third;
33 .gridItemFourthArea {
34 grid-area: fourth;
37 .gridItemFifthArea {
38 grid-area: fifth;
41 .gridItemSixthArea {
42 grid-area: sixth;
45 .gridItemSpan2ThirdArea {
46 grid-row: fourth;
47 grid-column: span 2 / third;
50 .gridItemNamedGridLineWithArea {
51 grid-row: third / after;
52 grid-column: 1;
54 </style>
55 <script src="../../resources/check-layout.js"></script>
56 </head>
57 <body onload="checkLayout('.grid')">
59 <p>This test checks that we resolve named grid areas per the specification.</p>
61 <div style="position: relative">
62 <div class="grid gridWithoutRepeat">
63 <div class="sizedToGridArea gridItemSixthArea" data-offset-x="120" data-offset-y="50" data-expected-width="160" data-expected-height="100"></div>
64 <div class="sizedToGridArea gridItemFifthArea" data-offset-x="40" data-offset-y="50" data-expected-width="80" data-expected-height="100"></div>
65 <div class="sizedToGridArea gridItemFourthArea" data-offset-x="0" data-offset-y="50" data-expected-width="40" data-expected-height="100"></div>
66 <div class="sizedToGridArea gridItemThirdArea" data-offset-x="120" data-offset-y="0" data-expected-width="160" data-expected-height="50"></div>
67 <div class="sizedToGridArea gridItemSecondArea" data-offset-x="40" data-offset-y="0" data-expected-width="80" data-expected-height="50"></div>
68 <div class="sizedToGridArea gridItemFirstArea" data-offset-x="0" data-offset-y="0" data-expected-width="40" data-expected-height="50"></div>
70 <div class="sizedToGridArea gridItemSpan2ThirdArea" data-offset-x="40" data-offset-y="50" data-expected-width="240" data-expected-height="100"></div>
71 <div class="sizedToGridArea gridItemNamedGridLineWithArea" data-offset-x="0" data-offset-y="0" data-expected-width="40" data-expected-height="150"></div>
72 </div>
73 </div>
75 <div style="position: relative">
76 <div class="grid gridWithRepeat">
77 <!-- fifth and sixth are invalid named grid areas. -->
78 <div class="sizedToGridArea gridItemSixthArea" data-offset-x="0" data-offset-y="150" data-expected-width="40" data-expected-height="150"></div>
79 <div class="sizedToGridArea gridItemFifthArea" data-offset-x="40" data-offset-y="150" data-expected-width="80" data-expected-height="150"></div>
81 <div class="sizedToGridArea gridItemFourthArea" data-offset-x="0" data-offset-y="50" data-expected-width="120" data-expected-height="100"></div>
82 <div class="sizedToGridArea gridItemThirdArea" data-offset-x="120" data-offset-y="0" data-expected-width="160" data-expected-height="150"></div>
83 <div class="sizedToGridArea gridItemSecondArea" data-offset-x="40" data-offset-y="0" data-expected-width="80" data-expected-height="50"></div>
84 <div class="sizedToGridArea gridItemFirstArea" data-offset-x="0" data-offset-y="0" data-expected-width="40" data-expected-height="50"></div>
86 <div class="sizedToGridArea gridItemSpan2ThirdArea" data-offset-x="40" data-offset-y="50" data-expected-width="240" data-expected-height="100"></div>
87 <div class="sizedToGridArea gridItemNamedGridLineWithArea" data-offset-x="0" data-offset-y="0" data-expected-width="40" data-expected-height="150"></div>
88 </div>
89 </div>
91 </body>
92 </html>