Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-grid/grid-child-percent-basis-resize-1.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="match" href="grid-child-percent-basis-resize-1-ref.html">
<style>
.grid-container {
display: grid;
width: 100px;
}
.grid-item {
}
.scroll-outer {
overflow:hidden;
/* this combination is important */
height: 100%;
max-height: 100px;
}
.scroll-inner {
overflow:scroll;
height:100%;
}
</style>
<div class="grid-container">
<div class="grid-item">
<div class="scroll-outer">
<div class="scroll-inner">
<div>0</div>
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
<div>5</div>
<div>6</div>
<div>7</div>
<div>8</div>
<div>9</div>
<div>0</div>
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
<div>5</div>
<div>6</div>
<div>7</div>
<div>8</div>
<div>9</div>
</div>
</div>
</div>
</div>