1
0
Fork 0
firefox/testing/web-platform/tests/css/css-position/sticky/position-sticky-column-reverse-flex.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

37 lines
901 B
HTML

<!DOCTYPE html>
<html class="reftest-wait">
<link rel="help" href="https://www.w3.org/TR/css-position-3/#sticky-pos" />
<meta name="assert" content="Position sticky works correctly with column-reverse flex" />
<link rel="match" href="position-sticky-column-reverse-flex-ref.html" />
<script src="/common/reftest-wait.js"></script>
<style>
#scroller {
position: relative;
display: flex;
flex-direction: column-reverse;
overflow-y: scroll;
width: 100px;
height: 100px;
scrollbar-width: none;
}
#sticky {
position: sticky;
bottom: 0;
width: 50px;
min-height: 50px;
background: green;
}
</style>
<div id=scroller>
<div id=sticky ></div>
<div style="min-height: 400px;"></div>
</div>
<script>
onload = () => {
scroller.scrollTo(0, -400);
takeScreenshot();
}
</script>
</html>