summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-anchor-position/anchor-center-scroll-ref.html
blob: d2638491cef23e0c1a788801aec9a4ec848b78d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!DOCTYPE html>
<title>CSS Test Reference</title>
<body style="margin:0">
  <div id="scroller" style="width:400px;height:400px;overflow:auto;background:orange">
    <div style="height:100px"></div>
    <div style="width:100px;height:100px;background:pink">
      <div style="height:25px"></div>
      <div style="width:50px;height:50px;background:purple"></div>
    </div>
    <div style="height:1000px"></div>
  </div>
</body>
<script>
  scroller.scrollTop = 100;
</script>