summaryrefslogtreecommitdiffstats
path: root/layout/reftests/forms/progress/indeterminate-style-height-ref.html
blob: 2a9eafa3158223c53f936b61867b5678dc127369 (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
<!DOCTYPE html>
<html>
  <link rel='stylesheet' href='resource://reftest/progress.css'>
  <style>
    div.progress-element {
      height: 12em;
      width: 2em;
    }
    div.progress-bar {
      height: 100%;
    }
    body > div:nth-child(1) > .progress-bar { position: relative;
                                              top: calc(12em - 20px); height: 20px; }
    body > div:nth-child(2) > .progress-bar { position: relative;
                                              top: calc(12em - 0px); height: 0px; }
    body > div:nth-child(3) > .progress-bar { position: relative;
                                              top: calc(12em - 50%); height: 50%; }
    body > div:nth-child(4) > .progress-bar { position: relative;
                                              top: calc(12em - 1em); height: 1em; }
    body > div:nth-child(5) > .progress-bar { position: relative;
                                              top: calc(12em - 100%); height: 100%; }
  </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>
  </body>
</html>