summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-grid/reference/grid-container-scrollbars-sizing-002-ref.html
blob: d95ab37f986256def0e68a31ccff71a55a560412 (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
<!DOCTYPE html>
<style>
.grid {
  display: block;
  background-color: grey;
  overflow: scroll;
}
.inline-grid {
  display: inline-block;
  background-color: grey;
  overflow: scroll;
}
.gridItem {
  display: block;
  width: 100px;
  height: 100px;
  background: green;
}
.fit-content {
  width: fit-content;
}
</style>
<body>
<div class='grid fit-content'>
  <span class='gridItem'></span>
</div>
<div class='grid fit-content' style='overflow-y: hidden'>
  <span class='gridItem'></span>
</div>
<div class='inline-grid fit-content'>
  <span class='gridItem'></span>
</div>
<div class='inline-grid fit-content' style='overflow-y: hidden'>
  <span class='gridItem'></span>
</div>
</body>