summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-scroll-snap/scroll-snap-root-001-ref.html
blob: 88f028fb3952b394f6ff4a9548b0b41a26bad131 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html>
<title>CSS Scroll Snap Reference</title>
<style>
html, body { margin: 0; padding: 0; }

:root {
  overflow: hidden; /* hide scrollbars for reftest analysis */
}

#target {
  position: absolute;
  top: 25%;
  width: 100%;
  margin: 25vh 0;
  border-top: solid blue;
}
</style>

<div id="target">
  <div>Test passes if the blue line above is centered in the viewport.</div>
</div>