blob: 146652381130fd9442b2f579decf2d2b73318ef3 [file] [log] [blame]
<style>
#container {
height: 500px;
width: 500px;
overflow: scroll;
border: 1px solid black;
}
.nested {
height: 300px;
background-color: cyan;
}
.scrolly {
width: 100px;
height: 600px;
background-color: blue;
border-bottom: 10px solid green;
}
.sticky {
bottom: 0px;
position: sticky;
width: 100px;
height: 110px;
background-color: yellow;
}
</style>
PASS if the green border is visible at the bottom of the red box.
<div id=container>
<div class=nested>
<div class=scrolly></div>
<div class=sticky></div>
</div>
</div>
<script>
container.scrollTo(0, 240);
</script>