summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-anchor-position/position-visibility-remove-no-overflow-ref.html
blob: b41d2110e5079c847378f41b1a95e1485028a091 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!DOCTYPE html>
<meta charset="utf-8">
<style>
  #scroll-container {
    overflow: hidden scroll;
    width: 400px;
    height: 100px;
  }

  .anchor {
    width: 100px;
    height: 100px;
    background: orange;
    display: inline-block;
  }

  .target {
    width: 100px;
    height: 100px;
    background: green;
  }
</style>

<div id="scroll-container">
  <div class="anchor">anchor1</div>
  <div class="target">target1</div>
</div>