summaryrefslogtreecommitdiffstats
path: root/layout/reftests/async-scrolling/position-sticky-transformed-in-scrollframe-1-ref.html
blob: 365c247fe098143eda664c3837a52d7e1cf3456d (plain)
1
2
3
4
5
6
7
8
9
10
11
<!DOCTYPE HTML>
<html>
<div id="scroller" style="overflow:scroll; height: 400px; width: 400px">
<div style="transform: translateY(10px); margin-top: 90px; background-color: yellow; height: 400px">
<div style="position: relative; top: 30px; height: 20px; background-color: green"></div>
</div>
<div style="height: 400px">spacer</div>
</div>
<script>
    document.getElementById('scroller').scrollTop = 120;
</script>