summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-scroll-snap/support/common.css
blob: f49c7cbacd5bd9084ab53fc2964e77ab52862e40 (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
body {
  margin: 0;
}

#scroller {
  position: absolute;
  width: 400px;
  height: 400px;
  overflow: scroll;
  padding: 0;

  scroll-snap-type: both mandatory;
}

.snap {
  position: absolute;
  width: 200px;
  height: 200px;
  background-color: blue;

  scroll-snap-align: start;
}

#space {
  position: absolute;
  width: 1000px;
  height: 1000px;
}

.left {
  left: 0;
}

.top {
  top: 0;
}

.right {
  left: 400px;
}

.bottom {
  top: 400px;
}