Status: PASS | Duration: 8ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-conditional/container-queries/scrollbar-container-units-inline.html
<!DOCTYPE html> <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/10043#issuecomment-2165291421"> <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>
/css/css-conditional/container-queries/scrollbar-container-units-inline-ref.html
<!DOCTYPE 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: 100%; 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 style="width: 100px;"></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>