Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that disables it given conditions:
- (os == "mac") and (os_version == "14.70") and (processor == "x86_64") and not debug : Bug 1931154
- (os == "mac") and (os_version == "14.70") and (processor == "x86_64") and debug : Bug 1931154
- This WPT test may be referenced by the following Test IDs:
- /css/css-grid/subgrid/scrollbar-gutter-002.html - WPT Dashboard Interop Dashboard
<!DOCTYPE HTML>
<meta charset="utf-8">
<title>CSS Grid Test: Fieldset subgrids with 'overflow' and/or 'scrollbar-gutter'</title>
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
<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;
}
fieldset {
margin: 0;
padding: 0;
border: 0;
}
</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">
<fieldset class="subgrid" style="overflow: scroll;">
<div class="item"></div>
</fieldset>
</div>
<div class="grid" style="writing-mode: vertical-rl;">
<fieldset class="subgrid" style="overflow: scroll;">
<div class="item"></div>
</fieldset>
</div>
<p>Testcase 2: subgrid with 'overflow: auto' and 'scrollbar-gutter: stable'</p>
<div class="grid">
<fieldset class="subgrid" style="overflow: auto; scrollbar-gutter: stable;">
<div class="item"></div>
</fieldset>
</div>
<div class="grid" style="writing-mode: vertical-rl;">
<fieldset class="subgrid" style="overflow: auto; scrollbar-gutter: stable;">
<div class="item"></div>
</fieldset>
</div>
<p>Testcase 3: subgrid with 'overflow: hidden' and 'scrollbar-gutter: stable'</p>
<div class="grid">
<fieldset class="subgrid" style="overflow: hidden; scrollbar-gutter: stable;">
<div class="item"></div>
</fieldset>
</div>
<div class="grid" style="writing-mode: vertical-rl;">
<fieldset class="subgrid" style="overflow: hidden; scrollbar-gutter: stable;">
<div class="item"></div>
</fieldset>
</div>