summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/scroll-animations/view-timelines/range-boundary-ref.html
blob: 057d0afabcdf579765cc1de8df4c63a6edeea8c4 (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title></title>
</head>
<style type="text/css">
  .scroller {
    display:  inline-block;
    border: 2px solid black;
    height:  100px;
    width:  100px;
    overflow: hidden;
  }
  .box {
    background: gray;
    height: 50px;
    width: 50px;
    margin: 0;
  }
  .half-shift {
    transform:  translateX(25px);
  }
  .full-shift {
    transform: translateX(50px);
  }
  .blue {
    background-color:  #99f;
  }
  .green {
    background-color: #9f9;
  }
</style>
<body>
  <div id="scroller-1" class="scroller">
    <div class="box green"></div>
    <div class="box blue full-shift"></div>
  </div>
  <div id="scroller-2" class="scroller">
    <div class="box"></div>
    <div class="box blue"></div>
  </div>
  <br>
  <div id="scroller-3" class="scroller">
    <div class="box"></div>
    <div class="box blue"></div>
  </div>
  <div id="scroller-4" class="scroller">
    <div class="box"></div>
    <div class="box green"></div>
  </div>
  <br>
  <div id="scroller-5" class="scroller">
    <div class="box blue"></div>
    <div class="box half-shift green"></div>
  </div>
  <div id="scroller-6" class="scroller">
    <div class="box"></div>
    <div class="box green"></div>
  </div>
</body>
</html>