OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
| 4 <link href="../css-intrinsic-dimensions/resources/width-keyword-classes.css" rel
="stylesheet"> |
| 5 <link href="resources/grid.css" rel="stylesheet"> |
4 <style> | 6 <style> |
5 .grid { | 7 .grid { |
6 display: grid; | 8 display: grid; |
7 grid-template-rows: repeat(5, 300px); | 9 grid-template-rows: repeat(5, 300px); |
8 grid-template-columns: repeat(5, 300px); | 10 grid-template-columns: repeat(5, 300px); |
9 width: -webkit-fit-content; | |
10 background-color: gray; | 11 background-color: gray; |
11 } | 12 } |
12 | 13 |
13 .overflowingHorizontalGridItemBlue { | 14 .overflowingHorizontalGridItemBlue { |
14 background-color: blue; | 15 background-color: blue; |
15 height: 100%; | 16 height: 100%; |
16 width: 450px; | 17 width: 450px; |
17 } | 18 } |
18 | 19 |
19 .overflowingHorizontalGridItemOrange { | 20 .overflowingHorizontalGridItemOrange { |
(...skipping 16 matching lines...) Expand all Loading... |
36 .gridItem { | 37 .gridItem { |
37 background-color: red; | 38 background-color: red; |
38 width: 100%; | 39 width: 100%; |
39 height: 100%; | 40 height: 100%; |
40 } | 41 } |
41 | 42 |
42 </style> | 43 </style> |
43 </head> | 44 </head> |
44 <body> | 45 <body> |
45 | 46 |
46 <div class="grid"> | 47 <div class="grid fit-content"> |
47 <div class="overflowingVerticalGridItemGreen" style="grid-column: 3; grid-row:
1; margin-bottom: -200px;"></div> | 48 <div class="overflowingVerticalGridItemGreen" style="grid-column: 3; grid-row:
1; margin-bottom: -200px;"></div> |
48 <div class="overflowingVerticalGridItemYellow" style="grid-column: 3; grid-row
: 1; margin-bottom: -200px;"></div> | 49 <div class="overflowingVerticalGridItemYellow" style="grid-column: 3; grid-row
: 1; margin-bottom: -200px;"></div> |
49 | 50 |
50 <div class="overflowingVerticalGridItemYellow" style="grid-column: 3; grid-row
: 5; margin-top: -200px;"></div> | 51 <div class="overflowingVerticalGridItemYellow" style="grid-column: 3; grid-row
: 5; margin-top: -200px;"></div> |
51 <div class="overflowingVerticalGridItemGreen" style="grid-column: 3; grid-row:
5; margin-top: -200px;"></div> | 52 <div class="overflowingVerticalGridItemGreen" style="grid-column: 3; grid-row:
5; margin-top: -200px;"></div> |
52 | 53 |
53 <div class="gridItem" style="grid-column: 3; grid-row: 3;"></div> | 54 <div class="gridItem" style="grid-column: 3; grid-row: 3;"></div> |
54 | 55 |
55 <div class="overflowingHorizontalGridItemOrange" style="grid-column: 1; grid-r
ow: 3; margin-right: -150px;"></div> | 56 <div class="overflowingHorizontalGridItemOrange" style="grid-column: 1; grid-r
ow: 3; margin-right: -150px;"></div> |
56 <div class="overflowingHorizontalGridItemBlue" style="grid-column: 1; grid-row
: 3; margin-right: -150px;"></div> | 57 <div class="overflowingHorizontalGridItemBlue" style="grid-column: 1; grid-row
: 3; margin-right: -150px;"></div> |
57 | 58 |
58 <div class="overflowingHorizontalGridItemBlue" style="grid-column: 5; grid-row
: 3; margin-left: -150px;"></div> | 59 <div class="overflowingHorizontalGridItemBlue" style="grid-column: 5; grid-row
: 3; margin-left: -150px;"></div> |
59 <div class="overflowingHorizontalGridItemOrange" style="grid-column: 5; grid-r
ow: 3; margin-left: -150px;"></div> | 60 <div class="overflowingHorizontalGridItemOrange" style="grid-column: 5; grid-r
ow: 3; margin-left: -150px;"></div> |
60 | 61 |
61 </div> | 62 </div> |
62 | 63 |
63 | 64 |
64 </body> | 65 </body> |
65 <script> | 66 <script> |
66 window.scrollTo(400, 475); | 67 window.scrollTo(400, 475); |
67 </script> | 68 </script> |
68 </html> | 69 </html> |
OLD | NEW |