summaryrefslogtreecommitdiffstats
path: root/layout/generic/crashtests/1553824.html
blob: afa0fb0a8ecc8f3120b2df21a6d7324e440e465d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<body onload="test()">
<script>
function test() {
  document.body.offsetWidth;
  let grid = document.querySelector(".container");
  grid.style = "grid-template-columns:none";
}
</script>

<style>
body {
  font: 1.2em Arial, Verdana, sans-serif;
  background-color: #fff;
}

.container {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: auto auto auto;
}

header,
footer,
aside,
li,.box {
  background-color: rgb(120, 70, 123);
  border: 5px solid rgb(88, 55, 112);
  color: #fff;
  border-radius: 5px;
  padding: 20px;
}

aside {
  grid-row: 1 / -1;
  grid-column: 1;
}

header {
  grid-column: 2 / -2;
}

ul {
  gap: 10px;
  grid-row: 2;
  grid-column: 2 / -1;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: subgrid;
}

footer {
  grid-row: 3;
  grid-column: 2 / -1;
}

.box {
  grid-column: -2;
  grid-row:1;
}

</style>


<div class="container">
  <header>This is my header</header>
  <div class="box"></div>
  <aside>I should stretch from the top to the bottom of the grid</aside>
  <ul>
    <li>A</li>
    <li>B</li>
    <li>C</li>
    <li>D</li>
    <li>E</li>
    <li>F</li>
    <li>G</li>
    <li>H</li>
    <li>I</li>
    <li>J</li>
    <li>K</li>
  </ul>
  <footer>I am a footer</footer>
</div>