blob: cf6c2e521e3f8c2545f40359de42da7d02eed1ba (
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
|
<!DOCTYPE html>
<html>
<style>
div.meter-element {
/**
* The purpose of this test is to not show the native style.
* -moz-appearance: meterbar;
*/
display: inline-block;
height: 1em;
width: 5em;
vertical-align: -0.2em;
background: linear-gradient(#e6e6e6, #e6e6e6, #eeeeee 20%, #cccccc 45%, #cccccc 55%);
}
div.meter-bar {
/**
* The purpose of this test is to not show the native style.
* -moz-appearance: meterchunk;
*/
height: 100%;
width: 100%;
background: linear-gradient(#ad7, #ad7, #cea 20%, #7a3 45%, #7a3 55%);
}
div.meter-element { padding: 5px; }
body > div:nth-child(1) { -moz-appearance: none; }
body > div:nth-child(2) > .meter-bar { -moz-appearance: none; }
body > div:nth-child(3) { background: red; }
body > div:nth-child(4) > .meter-bar { background: red; }
body > div:nth-child(5) { border: 2px solid red; }
body > div:nth-child(6) > .meter-bar { border: 5px solid red; width: calc(100% - 10px); }
</style>
<body>
<div class="meter-element">
<div class="meter-bar"></div>
</div>
<div class="meter-element">
<div class="meter-bar"></div>
</div>
<div class="meter-element">
<div class="meter-bar"></div>
</div>
<div class="meter-element">
<div class="meter-bar"></div>
</div>
<div class="meter-element">
<div class="meter-bar"></div>
</div>
<div class="meter-element">
<div class="meter-bar"></div>
</div>
</body>
</html>
|