| 12
 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
 
 | <!DOCTYPE HTML>
<meta charset="utf-8">
<title>CSS Grid Test: Subgrids with 'overflow' and/or 'scrollbar-gutter'</title>
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
<link rel="author" title="Mozilla" href="https://www.mozilla.org/">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1879770">
<link rel="help" href="https://drafts.csswg.org/css-grid-2/#subgrid-item-contribution">
<link rel="match" href="scrollbar-gutter-001-ref.html">
<style>
:root {
  overflow: scroll; /* Required to reproduce the bug on Firefox */
}
.grid {
  inline-size: 75px;
  display: inline-grid;
  border: 5px solid blue;
  vertical-align: top;
}
.subgrid {
  block-size: 75px;
  display: grid;
  grid: auto / subgrid;
}
.item {
  inline-size: 50px;
  block-size: 50px;
  background: green;
}
</style>
<p>All the following subgrid scroll container shouldn't have any scrollbars.</p>
<p>Testcase 1: subgrid with 'overflow: scroll'</p>
<div class="grid">
  <div class="subgrid" style="overflow: scroll;">
    <div class="item"></div>
  </div>
</div>
<div class="grid" style="writing-mode: vertical-rl;">
  <div class="subgrid" style="overflow: scroll;">
    <div class="item"></div>
  </div>
</div>
<p>Testcase 2: subgrid with 'overflow: auto' and 'scrollbar-gutter: stable'</p>
<div class="grid">
  <div class="subgrid" style="overflow: auto; scrollbar-gutter: stable;">
    <div class="item"></div>
  </div>
</div>
<div class="grid" style="writing-mode: vertical-rl;">
  <div class="subgrid" style="overflow: auto; scrollbar-gutter: stable;">
    <div class="item"></div>
  </div>
</div>
<p>Testcase 3: subgrid with 'overflow: hidden' and 'scrollbar-gutter: stable'</p>
<div class="grid">
  <div class="subgrid" style="overflow: hidden; scrollbar-gutter: stable;">
    <div class="item"></div>
  </div>
</div>
<div class="grid" style="writing-mode: vertical-rl;">
  <div class="subgrid" style="overflow: hidden; scrollbar-gutter: stable;">
    <div class="item"></div>
  </div>
</div>
 |