summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-scroll-snap-2/scroll-start-target/scroll-start-target-with-hash-fragment-navigation-inner-frame.html
blob: 9bf77363d3e60d2d8f4a6d33c4d053aedcd59239 (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
43
44
45
46
47
48
<!DOCTYPE html>
<html>

<head>
</head>

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

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

    #top_box {
      width: 100px;
      height: 60vh;
      background-color: blue;
    }
    #middle_box {
      width: 100px;
      height: 60vh;
      scroll-start-target: auto auto;
      background-color: purple;
    }
    #bottom_box {
      width: 100px;
      height: 60vh;
      background-color: yellow;
    }

    #fragment_target {
      width: 100px;
      height: 100px;
      background-color: red;
    }
  </style>
  <div id="top_box"></div>
  <div id="middle_box"></div>
  <div id="bottom_box"></div>
  <div id="spacer"></div>
  <div id="fragment_target">Fragment Target</div>
</body>

</html>