summaryrefslogtreecommitdiffstats
path: root/layout/reftests/forms/input/range/1887539.html
blob: 9472af203ec2933b80bf646b5dde75033871a075 (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
<!doctype html>
<style>
#scrubber {
  height: 100px;
  width: 100%;
  appearance: none;
  background-color: black;
  box-sizing: border-box;
  padding: 6px 2px;
  margin: 0;

  &::-moz-range-thumb {
    border-radius: 14px;
    background-color: #BFBFC9;
    width: 8px;
    height: 8px;
    border: 3px solid white;
    padding: 0;
  }

  &::-moz-range-track {
    background-color: #969696;
  }

  &::-moz-range-progress {
    background-color: white;
  }
}
</style>
<input type="range" id="scrubber" value="0" min="0" max="1" step=".001">
<script>
let scrubber = document.getElementById('scrubber');
scrubber.getBoundingClientRect();
scrubber.value = 0.5;
</script>