OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <link href="resources/grid.css" rel="stylesheet"> | 4 <link href="resources/grid.css" rel="stylesheet"> |
5 <link href="resources/grid-alignment.css" rel="stylesheet"> | 5 <link href="resources/grid-alignment.css" rel="stylesheet"> |
6 <script src="../../resources/check-layout.js"></script> | 6 <link href="../css-intrinsic-dimensions/resources/width-keyword-classes.css" rel
="stylesheet"> |
7 <style> | 7 <style> |
8 body { | 8 body { |
9 margin: 0; | 9 margin: 0; |
10 } | 10 } |
11 | 11 |
12 .grid { | 12 .grid { |
13 grid-template-columns: 50px 50px; | 13 grid-template-columns: 50px 50px; |
14 grid-template-rows: 100px 100px; | 14 grid-template-rows: 100px 100px; |
15 } | 15 } |
16 | 16 |
17 .overflowWidth { | 17 .overflowWidth { |
18 width: 60px; | 18 width: 60px; |
19 height: 300px; | 19 height: 300px; |
20 } | 20 } |
21 | 21 |
22 .overflowHeight { | 22 .overflowHeight { |
23 width: 200px; | 23 width: 200px; |
24 height: 150px; | 24 height: 150px; |
25 } | 25 } |
26 </style> | 26 </style> |
| 27 <script src="../../resources/testharness.js"></script> |
| 28 <script src="../../resources/testharnessreport.js"></script> |
| 29 <script src="../../resources/check-layout-th.js"></script> |
27 </head> | 30 </head> |
28 <body onload="checkLayout('.grid')"> | 31 <body onload="checkLayout('.grid')"> |
29 | 32 |
30 <p>This test checks that the 'overflow' keyword is applied correctly for Content
Alignment properties.</p> | 33 <p>This test checks that the 'overflow' keyword is applied correctly for Content
Alignment properties.</p> |
31 | 34 |
32 <div style="position: relative"> | 35 <div style="position: relative"> |
33 <div class="grid overflowWidth contentCenter" data-expected-width="60" data-
expected-height="300"> | 36 <div class="grid overflowWidth contentCenter" data-expected-width="60" data-
expected-height="300"> |
34 <div class="firstRowFirstColumn" data-offset-x="-20" data-offset-y="50"
data-expected-width="50" data-expected-height="100"></div> | 37 <div class="firstRowFirstColumn" data-offset-x="-20" data-offset-y="50"
data-expected-width="50" data-expected-height="100"></div> |
35 <div class="secondRowFirstColumn" data-offset-x="-20" data-offset-y="150
" data-expected-width="50" data-expected-height="100"></div> | 38 <div class="secondRowFirstColumn" data-offset-x="-20" data-offset-y="150
" data-expected-width="50" data-expected-height="100"></div> |
36 <div class="firstRowSecondColumn" data-offset-x="30" data-offset-y="50"
data-expected-width="50" data-expected-height="100"></div> | 39 <div class="firstRowSecondColumn" data-offset-x="30" data-offset-y="50"
data-expected-width="50" data-expected-height="100"></div> |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 | 97 |
95 <div style="position: relative"> | 98 <div style="position: relative"> |
96 <div class="grid overflowHeight contentEndSafe" data-expected-width="200" da
ta-expected-height="150"> | 99 <div class="grid overflowHeight contentEndSafe" data-expected-width="200" da
ta-expected-height="150"> |
97 <div class="firstRowFirstColumn" data-offset-x="100" data-offset-y="0" d
ata-expected-width="50" data-expected-height="100"></div> | 100 <div class="firstRowFirstColumn" data-offset-x="100" data-offset-y="0" d
ata-expected-width="50" data-expected-height="100"></div> |
98 <div class="secondRowFirstColumn" data-offset-x="100" data-offset-y="100
" data-expected-width="50" data-expected-height="100"></div> | 101 <div class="secondRowFirstColumn" data-offset-x="100" data-offset-y="100
" data-expected-width="50" data-expected-height="100"></div> |
99 <div class="firstRowSecondColumn" data-offset-x="150" data-offset-y="0"
data-expected-width="50" data-expected-height="100"></div> | 102 <div class="firstRowSecondColumn" data-offset-x="150" data-offset-y="0"
data-expected-width="50" data-expected-height="100"></div> |
100 <div class="secondRowSecondColumn" data-offset-x="150" data-offset-y="10
0" data-expected-width="50" data-expected-height="100"></div> | 103 <div class="secondRowSecondColumn" data-offset-x="150" data-offset-y="10
0" data-expected-width="50" data-expected-height="100"></div> |
101 </div> | 104 </div> |
102 </div> | 105 </div> |
103 | 106 |
| 107 <div style="position: relative"> |
| 108 <div class="grid fit-content contentEndUnsafe" data-expected-width="100" dat
a-expected-height="200"> |
| 109 <div class="firstRowFirstColumn" data-offset-x="0" data-offset-y="0" dat
a-expected-width="50" data-expected-height="100"></div> |
| 110 <div class="secondRowFirstColumn" data-offset-x="0" data-offset-y="100"
data-expected-width="50" data-expected-height="100"></div> |
| 111 <div class="firstRowSecondColumn" data-offset-x="50" data-offset-y="0" d
ata-expected-width="50" data-expected-height="100"></div> |
| 112 <div class="secondRowSecondColumn" data-offset-x="50" data-offset-y="100
" data-expected-width="50" data-expected-height="100"></div> |
| 113 </div> |
| 114 </div> |
| 115 |
| 116 <div style="position: relative"> |
| 117 <div class="grid fit-content contentCenterUnsafe" data-expected-width="100"
data-expected-height="200"> |
| 118 <div class="firstRowFirstColumn" data-offset-x="0" data-offset-y="0" dat
a-expected-width="50" data-expected-height="100"></div> |
| 119 <div class="secondRowFirstColumn" data-offset-x="0" data-offset-y="100"
data-expected-width="50" data-expected-height="100"></div> |
| 120 <div class="firstRowSecondColumn" data-offset-x="50" data-offset-y="0" d
ata-expected-width="50" data-expected-height="100"></div> |
| 121 <div class="secondRowSecondColumn" data-offset-x="50" data-offset-y="100
" data-expected-width="50" data-expected-height="100"></div> |
| 122 </div> |
| 123 </div> |
| 124 |
104 </body> | 125 </body> |
105 </html> | 126 </html> |
OLD | NEW |