summaryrefslogtreecommitdiff
path: root/widget/reftests/progressbar-fallback-default-style-ref.html
blob: 5de4274ecb5b279d627eec06dcd2a3fad89078c2 (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
64
65
66
<!DOCTYPE html>
<html>
  <style>
    div.progress-element {
      /**
       * The purpose of this test is to not show the native style.
       * -moz-appearance: progressbar;
       */
      display: inline-block;
      height: 1em;
      width: 10em;
      vertical-align: -0.2em;

      /* Default style in case of there is -moz-appearance: none; */
      border: 2px solid;
      -moz-border-top-colors: ThreeDShadow #e6e6e6;
      -moz-border-right-colors: ThreeDHighlight #e6e6e6;
      -moz-border-bottom-colors: ThreeDHighlight #e6e6e6;
      -moz-border-left-colors: ThreeDShadow #e6e6e6;
      background-color: #e6e6e6;
    }

    div.progress-bar {
      /**
       * The purpose of this test is to not show the native style.
       * -moz-appearance: progresschunk;
       */

      height: 100%;
      width: 100%;

      box-sizing: border-box;

      /* Default style in case of there is -moz-appearance: none; */
      background-color: #0064b4;
    }

    div.progress-element { padding: 5px; }
    body > div:nth-child(1)  { -moz-appearance: none; }
    body > div:nth-child(2) > .progress-bar { -moz-appearance: none; }
    body > div:nth-child(3)  { background-color: red; }
    body > div:nth-child(4) > .progress-bar { background-color: red; }
    body > div:nth-child(5)  { border: 2px solid red; }
    body > div:nth-child(6) > .progress-bar { border: 5px solid red; }
  </style>
  <body>
    <div class="progress-element">
      <div class="progress-bar"></div>
    </div>
    <div class="progress-element">
      <div class="progress-bar"></div>
    </div>
    <div class="progress-element">
      <div class="progress-bar"></div>
    </div>
    <div class="progress-element">
      <div class="progress-bar"></div>
    </div>
    <div class="progress-element">
      <div class="progress-bar"></div>
    </div>
    <div class="progress-element">
      <div class="progress-bar"></div>
    </div>
  </body>
</html>