Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css-grid-layout / grid-item-stretch-with-margins-borders-padding.html
blob455114d851a69daf8bb43b3197090efc93535995
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;
11 .grid {
12 grid-template-columns: 100px 100px;
13 grid-template-rows: 200px 200px;
14 width: -webkit-fit-content;
15 margin-bottom: 20px;
16 position: relative;
17 font: 15px/1 Ahem;
20 .margins {
21 margin: 4px 8px 12px 16px;
24 .paddings {
25 padding: 4px 6px 8px 10px;
28 .borders {
29 border-width: 5px 10px 15px 20px;
30 border-style: dotted;
33 </style>
34 </head>
35 <body onload="checkLayout('.grid')">
37 <p>This test checks that the 'stretch' value is applied correctly for 'align' and 'justify' properties.</p>
39 <div style="position: relative">
40 <p>direction: LTR | margin: 4px 8px 12px 16px</p>
41 <div class="grid" data-expected-width="200" data-expected-height="400">
42 <div class="margins firstRowFirstColumn" data-offset-x="16" data-offset-y="4" data-expected-width="76" data-expected-height="184" data-expected-client-width="76" data-expected-client-height="184">X X X X X X X X X X</div>
43 <div class="firstRowSecondColumn" data-offset-x="100" data-offset-y="0" data-expected-width="100" data-expected-height="200" data-expected-client-width="100" data-expected-client-height="200"></div>
44 <div class="secondRowFirstColumn" data-offset-x="0" data-offset-y="200" data-expected-width="100" data-expected-height="200" data-expected-client-width="100" data-expected-client-height="200"></div>
45 <div class="margins secondRowSecondColumn" data-offset-x="116" data-offset-y="204" data-expected-width="76" data-expected-height="184" data-expected-client-width="76" data-expected-client-height="184"></div>
46 </div>
47 </div>
49 <div style="position: relative">
50 <p>direction: LTR | border: 5px 10px 15px 20px</p>
51 <div class="grid" data-expected-width="200" data-expected-height="400">
52 <div class="borders firstRowFirstColumn" data-offset-x="0" data-offset-y="0" data-expected-width="100" data-expected-height="200" data-expected-client-width="70" data-expected-client-height="180">X X X X X X X X X X</div>
53 <div class="firstRowSecondColumn" data-offset-x="100" data-offset-y="0" data-expected-width="100" data-expected-height="200" data-expected-client-width="100" data-expected-client-height="200"></div>
54 <div class="secondRowFirstColumn" data-offset-x="0" data-offset-y="200" data-expected-width="100" data-expected-height="200" data-expected-client-width="100" data-expected-client-height="200"></div>
55 <div class="borders secondRowSecondColumn" data-offset-x="100" data-offset-y="200" data-expected-width="100" data-expected-height="200" data-expected-client-width="70" data-expected-client-height="180"></div>
56 </div>
57 </div>
59 <div style="position: relative">
60 <p>direction: LTR | padding: 4px 6px 8px 10px</p>
61 <div class="grid" data-expected-width="200" data-expected-height="400">
62 <div class="paddings firstRowFirstColumn" data-total-x="0" data-offset-y="0" data-expected-width="100" data-expected-height="200" data-expected-client-width="100" data-expected-client-height="200">X X X X X X X X X X</div>
63 <div class="firstRowSecondColumn" data-offset-x="100" data-offset-y="0" data-expected-width="100" data-expected-height="200" data-expected-client-width="100" data-expected-client-height="200"></div>
64 <div class="secondRowFirstColumn" data-offset-x="0" data-offset-y="200" data-expected-width="100" data-expected-height="200" data-expected-client-width="100" data-expected-client-height="200"></div>
65 <div class="paddings secondRowSecondColumn" data-offset-x="100" data-offset-y="200" data-expected-width="100" data-expected-height="200" data-expected-client-width="100" data-expected-client-height="200"></div>
66 </div>
67 </div>
69 <div style="position: relative">
70 <p>direction: LTR | margin: 4px 8px 12px 16px | border: 5px 10px 15px 20px</p>
71 <div class="grid" data-expected-width="200" data-expected-height="400">
72 <div class="margins borders firstRowFirstColumn" data-offset-x="16" data-offset-y="4" data-expected-width="76" data-expected-height="184" data-expected-client-width="46" data-expected-client-height="164">X X X X X X X X X X</div>
73 <div class="firstRowSecondColumn" data-offset-x="100" data-offset-y="0" data-expected-width="100" data-expected-height="200" data-expected-client-width="100" data-expected-client-height="200"></div>
74 <div class="secondRowFirstColumn" data-offset-x="0" data-offset-y="200" data-expected-width="100" data-expected-height="200" data-expected-client-width="100" data-expected-client-height="200"></div>
75 <div class="margins borders secondRowSecondColumn" data-offset-x="116" data-offset-y="204" data-expected-width="76" data-expected-height="184" data-expected-client-width="46" data-expected-client-height="164"></div>
76 </div>
77 </div>
79 <div style="position: relative">
80 <p>direction: LTR | margin: 4px 8px 12px 16px | padding: 4px 6px 8px 10px</p>
81 <div class="grid" data-expected-width="200" data-expected-height="400">
82 <div class="margins paddings firstRowFirstColumn" data-offset-x="16" data-offset-y="4" data-expected-width="76" data-expected-height="184" data-expected-client-width="76" data-expected-client-height="184">X X X X X X X X X X</div>
83 <div class="firstRowSecondColumn" data-offset-x="100" data-offset-y="0" data-expected-width="100" data-expected-height="200" data-expected-client-width="100" data-expected-client-height="200"></div>
84 <div class="secondRowFirstColumn" data-offset-x="0" data-offset-y="200" data-expected-width="100" data-expected-height="200" data-expected-client-width="100" data-expected-client-height="200"></div>
85 <div class="margins paddings secondRowSecondColumn" data-offset-x="116" data-offset-y="204" data-expected-width="76" data-expected-height="184" data-expected-client-width="76" data-expected-client-height="184"></div>
86 </div>
87 </div>
89 <div style="position: relative">
90 <p>direction: LTR | margin: 4px 8px 12px 16px | border: 5px 10px 15px 20px | padding: 4px 6px 8px 10px</p>
91 <div class="grid" data-expected-width="200" data-expected-height="400">
92 <div class="margins borders paddings firstRowFirstColumn" data-offset-x="16" data-offset-y="4" data-expected-width="76" data-expected-height="184" data-expected-client-width="46" data-expected-client-height="164">X X X X X X X X X X</div>
93 <div class="firstRowSecondColumn" data-offset-x="100" data-offset-y="0" data-expected-width="100" data-expected-height="200" data-expected-client-width="100" data-expected-client-height="200"></div>
94 <div class="secondRowFirstColumn" data-offset-x="0" data-offset-y="200" data-expected-width="100" data-expected-height="200" data-expected-client-width="100" data-expected-client-height="200"></div>
95 <div class="margins borders paddings secondRowSecondColumn" data-offset-x="116" data-offset-y="204" data-expected-width="76" data-expected-height="184"></div>
96 </div>
97 </div>
99 <!-- rtl direction -->
100 <div style="position: relative">
101 <p>direction: RTL | margin: 4px 8px 12px 16px</p>
102 <div class="grid directionRTL" data-expected-width="200" data-expected-height="400">
103 <div class="margins firstRowFirstColumn" data-offset-x="116" data-offset-y="4" data-expected-width="76" data-expected-height="184" data-expected-client-width="76" data-expected-client-height="184">X X X X X X X X X X</div>
104 <div class="firstRowSecondColumn" data-offset-x="0" data-offset-y="0" data-expected-width="100" data-expected-height="200" data-expected-client-width="100" data-expected-client-height="200"></div>
105 <div class="secondRowFirstColumn" data-offset-x="100" data-offset-y="200" data-expected-width="100" data-expected-height="200" data-expected-client-width="100" data-expected-client-height="200"></div>
106 <div class="margins secondRowSecondColumn" data-offset-x="16" data-offset-y="204" data-expected-width="76" data-expected-height="184" data-expected-client-width="76" data-expected-client-height="184"></div>
107 </div>
108 </div>
110 <div style="position: relative">
111 <p>direction: RTL | border: 5px 10px 15px 20px</p>
112 <div class="grid directionRTL" data-expected-width="200" data-expected-height="400">
113 <div class="borders firstRowFirstColumn" data-offset-x="100" data-offset-y="0" data-expected-width="100" data-expected-height="200" data-expected-client-width="70" data-expected-client-height="180">X X X X X X X X X X</div>
114 <div class="firstRowSecondColumn" data-offset-x="0" data-offset-y="0" data-expected-width="100" data-expected-height="200" data-expected-client-width="100" data-expected-client-height="200"></div>
115 <div class="secondRowFirstColumn" data-offset-x="100" data-offset-y="200" data-expected-width="100" data-expected-height="200" data-expected-client-width="100" data-expected-client-height="200"></div>
116 <div class="borders secondRowSecondColumn" data-offset-x="0" data-offset-y="200" data-expected-width="100" data-expected-height="200" data-expected-client-width="70" data-expected-client-height="180"></div>
117 </div>
118 </div>
120 <div style="position: relative">
121 <p>direction: RTL | padding: 4px 6px 8px 10px</p>
122 <div class="grid directionRTL" data-expected-width="200" data-expected-height="400">
123 <div class="paddings firstRowFirstColumn" data-total-x="100" data-offset-y="0" data-expected-width="100" data-expected-height="200" data-expected-client-width="100" data-expected-client-height="200">X X X X X X X X X X</div>
124 <div class="firstRowSecondColumn" data-offset-x="0" data-offset-y="0" data-expected-width="100" data-expected-height="200" data-expected-client-width="100" data-expected-client-height="200"></div>
125 <div class="secondRowFirstColumn" data-offset-x="100" data-offset-y="200" data-expected-width="100" data-expected-height="200" data-expected-client-width="100" data-expected-client-height="200"></div>
126 <div class="paddings secondRowSecondColumn" data-offset-x="0" data-offset-y="200" data-expected-width="100" data-expected-height="200" data-expected-client-width="100" data-expected-client-height="200"></div>
127 </div>
128 </div>
130 <div style="position: relative">
131 <p>direction: RTL | margin: 4px 8px 12px 16px | border: 5px 10px 15px 20px</p>
132 <div class="grid directionRTL" data-expected-width="200" data-expected-height="400">
133 <div class="margins borders firstRowFirstColumn" data-offset-x="116" data-offset-y="4" data-expected-width="76" data-expected-height="184" data-expected-client-width="46" data-expected-client-height="164">X X X X X X X X X X</div>
134 <div class="firstRowSecondColumn" data-offset-x="0" data-offset-y="0" data-expected-width="100" data-expected-height="200" data-expected-client-width="100" data-expected-client-height="200"></div>
135 <div class="secondRowFirstColumn" data-offset-x="100" data-offset-y="200" data-expected-width="100" data-expected-height="200" data-expected-client-width="100" data-expected-client-height="200"></div>
136 <div class="margins borders secondRowSecondColumn" data-offset-x="16" data-offset-y="204" data-expected-width="76" data-expected-height="184" data-expected-client-width="46" data-expected-client-height="164"></div>
137 </div>
138 </div>
140 <div style="position: relative">
141 <p>direction: RTL | margin: 4px 8px 12px 16px | padding: 4px 6px 8px 10px</p>
142 <div class="grid directionRTL" data-expected-width="200" data-expected-height="400">
143 <div class="margins paddings firstRowFirstColumn" data-offset-x="116" data-offset-y="4" data-expected-width="76" data-expected-height="184" data-expected-client-width="76" data-expected-client-height="184">X X X X X X X X X X</div>
144 <div class="firstRowSecondColumn" data-offset-x="0" data-offset-y="0" data-expected-width="100" data-expected-height="200" data-expected-client-width="100" data-expected-client-height="200"></div>
145 <div class="secondRowFirstColumn" data-offset-x="100" data-offset-y="200" data-expected-width="100" data-expected-height="200" data-expected-client-width="100" data-expected-client-height="200"></div>
146 <div class="margins paddings secondRowSecondColumn" data-offset-x="16" data-offset-y="204" data-expected-width="76" data-expected-height="184" data-expected-client-width="76" data-expected-client-height="184"></div>
147 </div>
148 </div>
150 <div style="position: relative">
151 <p>direction: RTL | margin: 4px 8px 12px 16px | border: 5px 10px 15px 20px | padding: 4px 6px 8px 10px</p>
152 <div class="grid directionRTL" data-expected-width="200" data-expected-height="400">
153 <div class="margins borders paddings firstRowFirstColumn" data-offset-x="116" data-offset-y="4" data-expected-width="76" data-expected-height="184" data-expected-client-width="46" data-expected-client-height="164">X X X X X X X X X X</div>
154 <div class="firstRowSecondColumn" data-offset-x="0" data-offset-y="0" data-expected-width="100" data-expected-height="200" data-expected-client-width="100" data-expected-client-height="200"></div>
155 <div class="secondRowFirstColumn" data-offset-x="100" data-offset-y="200" data-expected-width="100" data-expected-height="200" data-expected-client-width="100" data-expected-client-height="200"></div>
156 <div class="margins borders paddings secondRowSecondColumn" data-offset-x="16" data-offset-y="204" data-expected-width="76" data-expected-height="184"></div>
157 </div>
158 </div>
160 </body>
161 </html>