summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-scroll-snap-2/scroll-start-target/scroll-start-target-with-anchor-navigation-inner-frame.html
blob: bea0525ecd418128f8fd0b5b20033cbe158fdd60 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!DOCTYPE html>
<html>

<head>
</head>

<body>
  <style>
    :root, body {
      margin: 0px;
    }

    #spacer {
      height: 100vh;
      width: 100px;
    }

    #top_box {
      width: 100px;
      height: 60vh;
      background-color: red;
    }
    #middle_box {
      width: 100px;
      height: 60vh;
      scroll-start-target: auto auto;
      background-color: purple;
    }
    #bottom_box {
      width: 100px;
      height: 60vh;
      background-color: yellow;
    }
  </style>
  <div id="top_box"><a id="anchor_target_link" href="#anchor_target">Anchor Link</a></div>
  <div id="middle_box"></div>
  <div id="bottom_box"></div>
  <div id="spacer"></div>
  <div id="anchor_target">Anchor Target</div>
</body>

</html>