OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <link href="resources/grid.css" rel="stylesheet"> | 3 <link href="resources/grid.css" rel="stylesheet"> |
4 <style> | 4 <style> |
5 | 5 |
6 .grid { | 6 .grid { |
7 width: 200px; | 7 width: 200px; |
8 height: 200px; | 8 height: 200px; |
9 border: 5px solid black; | 9 border: 5px solid black; |
10 margin: 30px; | 10 margin: 30px; |
(...skipping 10 matching lines...) Expand all Loading... |
21 .absolute { | 21 .absolute { |
22 position: absolute; | 22 position: absolute; |
23 } | 23 } |
24 | 24 |
25 </style> | 25 </style> |
26 <script src="../../resources/check-layout.js"></script> | 26 <script src="../../resources/check-layout.js"></script> |
27 <body onload="checkLayout('.grid')"> | 27 <body onload="checkLayout('.grid')"> |
28 | 28 |
29 <p>This test checks the behavior of the absolutely positioned grid items placed
on the implicit grid.</p> | 29 <p>This test checks the behavior of the absolutely positioned grid items placed
on the implicit grid.</p> |
30 | 30 |
31 <p>TODO(rego): width and height of 1st and 3rd items in the next grid should be
230px once we solve http://crbug.com/562167</p> | |
32 | |
33 <div class="grid"> | 31 <div class="grid"> |
34 <div class="sizedToGridArea absolute secondRowSecondColumn" | 32 <div class="sizedToGridArea absolute secondRowSecondColumn" |
35 data-offset-x="15" data-offset-y="15" data-expected-width="230" data-exp
ected-height="230"> | 33 data-offset-x="15" data-offset-y="15" data-expected-width="230" data-exp
ected-height="230"> |
36 </div> | 34 </div> |
37 <div class="sizedToGridArea absolute endSecondRowEndSecondColumn" | 35 <div class="sizedToGridArea absolute endSecondRowEndSecondColumn" |
38 data-offset-x="15" data-offset-y="15" data-expected-width="230" data-exp
ected-height="230"> | 36 data-offset-x="15" data-offset-y="15" data-expected-width="230" data-exp
ected-height="230"> |
39 </div> | 37 </div> |
40 <div class="sizedToGridArea absolute onlySecondRowOnlySecondColumn" | 38 <div class="sizedToGridArea absolute onlySecondRowOnlySecondColumn" |
41 data-offset-x="15" data-offset-y="15" data-expected-width="230" data-exp
ected-height="230"> | 39 data-offset-x="15" data-offset-y="15" data-expected-width="230" data-exp
ected-height="230"> |
42 </div> | 40 </div> |
43 </div> | 41 </div> |
44 | 42 |
45 <div class="grid grid-columns-rows"> | 43 <div class="grid grid-columns-rows"> |
46 <div class="sizedToGridArea absolute secondRowSecondColumn" | 44 <div class="sizedToGridArea absolute secondRowSecondColumn" |
47 data-offset-x="115" data-offset-y="65" data-expected-width="115" data-ex
pected-height="165"> | 45 data-offset-x="115" data-offset-y="65" data-expected-width="115" data-ex
pected-height="165"> |
48 </div> | 46 </div> |
49 <div class="sizedToGridArea absolute endSecondRowEndSecondColumn" | 47 <div class="sizedToGridArea absolute endSecondRowEndSecondColumn" |
50 data-offset-x="15" data-offset-y="15" data-expected-width="230" data-exp
ected-height="230"> | 48 data-offset-x="15" data-offset-y="15" data-expected-width="230" data-exp
ected-height="230"> |
51 </div> | 49 </div> |
52 <div class="sizedToGridArea absolute onlySecondRowOnlySecondColumn" | 50 <div class="sizedToGridArea absolute onlySecondRowOnlySecondColumn" |
53 data-offset-x="115" data-offset-y="65" data-expected-width="115" data-ex
pected-height="165"> | 51 data-offset-x="115" data-offset-y="65" data-expected-width="115" data-ex
pected-height="165"> |
54 </div> | 52 </div> |
55 </div> | 53 </div> |
56 | 54 |
57 </body> | 55 </body> |
58 </html> | 56 </html> |
OLD | NEW |