summaryrefslogtreecommitdiffstats
path: root/layout/reftests/pixel-rounding/viewport-units-rounding-1-ref.html
blob: f762f004ffcae52800ec8481fef5f2320ee397a1 (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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<!DOCTYPE HTML>
<title>viewport units rounding reference</title>
<meta charset="UTF-8">
<style>
div.contain { height: 50px }
div.contain > div { height: 10px }
div.contain > div > div { height: 10px; float: left }
</style>

<div class="contain" style="width: 200px">
  <div>
    <div style="width: 50px; background: fuchsia"></div>
    <div style="width: 50px; background: aqua"></div>
    <div style="width: 50px; background: silver"></div>
    <div style="width: 50px; background: yellow"></div>
  </div>
  <div>
    <div style="width: 48px; background: fuchsia"></div>
    <div style="width: 48px; background: aqua"></div>
    <div style="width: 48px; background: silver"></div>
    <div style="width: 48px; background: yellow"></div>
    <div style="width: 8px; background: gray"></div>
  </div>
  <div>
    <div style="width: 42px; background: fuchsia"></div>
    <div style="width: 42px; background: aqua"></div>
    <div style="width: 42px; background: silver"></div>
    <div style="width: 42px; background: yellow"></div>
    <div style="width: 32px; background: gray"></div>
  </div>
</div>

<div class="contain" style="width: 201px">
  <div>
    <div style="width: 50px; background: fuchsia"></div>
    <div style="width: 51px; background: aqua"></div>
    <div style="width: 50px; background: silver"></div>
    <div style="width: 50px; background: yellow"></div>
  </div>
  <div>
    <div style="width: 48px; background: fuchsia"></div>
    <div style="width: 48px; background: aqua"></div>
    <div style="width: 49px; background: silver"></div>
    <div style="width: 48px; background: yellow"></div>
    <div style="width: 8px; background: gray"></div>
  </div>
  <div>
    <div style="width: 42px; background: fuchsia"></div>
    <div style="width: 42px; background: aqua"></div>
    <div style="width: 43px; background: silver"></div>
    <div style="width: 42px; background: yellow"></div>
    <div style="width: 32px; background: gray"></div>
  </div>
</div>

<div class="contain" style="width: 202px">
  <div>
    <div style="width: 51px; background: fuchsia"></div>
    <div style="width: 50px; background: aqua"></div>
    <div style="width: 51px; background: silver"></div>
    <div style="width: 50px; background: yellow"></div>
  </div>
  <div>
    <div style="width: 48px; background: fuchsia"></div>
    <div style="width: 49px; background: aqua"></div>
    <div style="width: 48px; background: silver"></div>
    <div style="width: 49px; background: yellow"></div>
    <div style="width: 8px; background: gray"></div>
  </div>
  <div>
    <div style="width: 42px; background: fuchsia"></div>
    <div style="width: 43px; background: aqua"></div>
    <div style="width: 42px; background: silver"></div>
    <div style="width: 43px; background: yellow"></div>
    <div style="width: 32px; background: gray"></div>
  </div>
</div>

<div class="contain" style="width: 203px">
  <div>
    <div style="width: 51px; background: fuchsia"></div>
    <div style="width: 51px; background: aqua"></div>
    <div style="width: 50px; background: silver"></div>
    <div style="width: 51px; background: yellow"></div>
  </div>
  <div>
    <div style="width: 49px; background: fuchsia"></div>
    <div style="width: 48px; background: aqua"></div>
    <div style="width: 49px; background: silver"></div>
    <div style="width: 49px; background: yellow"></div>
    <div style="width: 8px; background: gray"></div>
  </div>
  <div>
    <div style="width: 43px; background: fuchsia"></div>
    <div style="width: 42px; background: aqua"></div>
    <div style="width: 43px; background: silver"></div>
    <div style="width: 42px; background: yellow"></div>
    <div style="width: 33px; background: gray"></div>
  </div>
</div>

<div class="contain" style="width: 204px">
  <div>
    <div style="width: 51px; background: fuchsia"></div>
    <div style="width: 51px; background: aqua"></div>
    <div style="width: 51px; background: silver"></div>
    <div style="width: 51px; background: yellow"></div>
  </div>
  <div>
    <div style="width: 49px; background: fuchsia"></div>
    <div style="width: 49px; background: aqua"></div>
    <div style="width: 49px; background: silver"></div>
    <div style="width: 49px; background: yellow"></div>
    <div style="width: 8px; background: gray"></div>
  </div>
  <div>
    <div style="width: 43px; background: fuchsia"></div>
    <div style="width: 43px; background: aqua"></div>
    <div style="width: 43px; background: silver"></div>
    <div style="width: 42px; background: yellow"></div>
    <div style="width: 33px; background: gray"></div>
  </div>
</div>