Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css-grid-layout / absolute-positioning-grid-container-parent.html
blob6ba0b89c3c38b018113a2ac6cbd86e063108b6cc
1 <!DOCTYPE html>
2 <html>
3 <link href="resources/grid.css" rel="stylesheet">
4 <style>
6 .grid {
7 grid-template-columns: 50px 100px 150px;
8 grid-template-rows: 25px 50px 100px;
9 width: 300px;
10 height: 200px;
11 border: 5px solid black;
12 margin: 20px 30px;
13 padding: 5px 15px;
16 .container {
17 width: 500px;
18 height: 400px;
21 .relative {
22 /* Ensures that the element is the containing block of the absolutely positioned elements. */
23 position: relative;
26 .absolute {
27 position: absolute;
30 </style>
31 <script src="../../resources/check-layout.js"></script>
32 <body onload="checkLayout('.container')">
34 <p>This test checks the behavior of the absolutely positioned elements with a grid container as parent.</p>
36 <div class="container relative">
37 <div class="grid">
38 <div class="sizedToGridArea absolute autoRowAutoColumn" data-offset-x="50" data-offset-y="10" data-expected-width="500" data-expected-height="400"></div>
39 </div>
40 </div>
42 <div class="container relative">
43 <div class="grid">
44 <div class="sizedToGridArea absolute firstRowFirstColumn" data-offset-x="50" data-offset-y="10" data-expected-width="500" data-expected-height="400"></div>
45 </div>
46 </div>
48 <div class="container relative">
49 <div class="grid">
50 <div class="sizedToGridArea absolute secondRowSecondColumn" data-offset-x="50" data-offset-y="10" data-expected-width="500" data-expected-height="400"></div>
51 </div>
52 </div>
54 <div class="container">
55 <div class="grid relative">
56 <div class="sizedToGridArea absolute autoRowAutoColumn" data-offset-x="15" data-offset-y="5" data-expected-width="330" data-expected-height="210"></div>
57 </div>
58 </div>
60 <div class="container">
61 <div class="grid relative">
62 <div class="sizedToGridArea absolute firstRowFirstColumn" data-offset-x="15" data-offset-y="5" data-expected-width="315" data-expected-height="205"></div>
63 </div>
64 </div>
66 <div class="container">
67 <div class="grid relative">
68 <div class="sizedToGridArea absolute secondRowSecondColumn" data-offset-x="65" data-offset-y="30" data-expected-width="265" data-expected-height="180"></div>
69 </div>
70 </div>
72 </body>
73 </html>