Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-conditional/container-queries/scrollbar-container-units-inline.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<link rel="match" href="scrollbar-container-units-inline-ref.html">
<style>
.container {
display: inline-block;
border: solid 3px cornflowerblue;
width: 100px;
height: 100px;
container-type: inline-size;
}
div > div {
box-sizing: border-box;
width: 100cqw;
height: 200px;
border: solid 10px orange;
}
</style>
<div class="container" style="overflow-y: scroll;">
<div></div>
</div>
<div class="container" style="overflow-y: auto;">
<div></div>
</div>
<div class="container" style="overflow-y: auto; scrollbar-gutter: stable;">
<div></div>
</div>
<div class="container" style="overflow-y: auto; scrollbar-gutter: stable;">
<div style="height: 50px;"></div>
</div>