blob: 300b3058104b22ff09ba7aa22795d793c3101a88 (
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
|
<!DOCTYPE html>
<html>
<style>
body {
margin: 0;
}
.horizontal-box {
display: -webkit-flex;
}
.horizontal-box div {
height: 30px;
border: 0;
margin-bottom: 10px;
-webkit-flex: 1;
}
.first {
background-color: #0f0;
}
.second {
background-color: #0d0;
}
.third {
background-color: #090;
}
.fourth {
background-color: #060;
}
.fifth {
background-color: #030;
}
</style>
<script>
if (window.testRunner)
testRunner.dumpAsTextWithPixelResults();
</script>
<body>
<div class="horizontal-box">
<div class="first" style="-webkit-order: 0"></div>
<div class="second" style=""></div>
<div class="third" style="-webkit-order: 3"></div>
<div class="fourth" style="-webkit-order: 20"></div>
</div>
<div class="horizontal-box">
<div class="fourth" style="-webkit-order: 4"></div>
<div class="third" style="-webkit-order: 3"></div>
<div class="second" style="-webkit-order: 2"></div>
<div class="first" style="-webkit-order: 1"></div>
</div>
<!-- The example from the spec. -->
<div class="horizontal-box">
<div class="third" style="-webkit-order: 1"></div>
<div class="first" style=""></div>
<div class="fourth" style="-webkit-order: 1"></div>
<div class="second" style="-webkit-order: 0"></div>
</div>
<div class="horizontal-box">
<div class="fourth" style="-webkit-order: 2"></div>
<div class="second" style=""></div>
<div class="third" style=""></div>
<div class="first" style="-webkit-order: -10"></div>
</div>
<div class="horizontal-box">
<div class="fourth" style="-webkit-order: 2000000000"></div>
<div class="second" style="-webkit-order: 1000000000"></div>
<div class="third" style="-webkit-order: 1000000000"></div>
<div class="first" style="-webkit-order: -1000000000"></div>
</div>
<!-- Floating numbers are ignored and we use the default of 1 instead. -->
<div class="horizontal-box">
<div class="second" style="-webkit-order: 2.5"></div>
<div class="fourth" style="-webkit-order: 2"></div>
<div class="first" style="-webkit-order: -1"></div>
<div class="third" style=""></div>
</div>
<div class="horizontal-box">
<div class="second" style="-webkit-order: 0"></div>
<div class="first" style="-webkit-order: -1"></div>
<div class="fourth" style="-webkit-order: 1"></div>
<div class="third" style=""></div>
</div>
<!-- Values greater than what can be stored in an int are clamped from
-2,147,483,646 (int min + 2) to 2,147,483,647. -->
<div class="horizontal-box">
<div class="third" style="-webkit-order: 4000000000"></div>
<div class="fourth" style="-webkit-order: 3000000000"></div>
<div class="first" style=""></div>
<div class="second" style="-webkit-order: 2147483646"></div>
</div>
<div class="horizontal-box">
<div class="second" style="-webkit-order: 4000000000"></div>
<div class="third" style="-webkit-order: 3000000000"></div>
<div class="first" style=""></div>
<div class="fourth" style="-webkit-order: 2147483647"></div>
</div>
<div class="horizontal-box">
<div class="third" style="-webkit-order: -2147483645"></div>
<div class="first" style="-webkit-order: -2147483646"></div>
<div class="second" style="-webkit-order: -2147483647"></div>
<div class="fourth" style=""></div>
</div>
<!-- This should not crash. -->
<div class="horizontal-box"></div>
<div style="position:absolute; left: -10000px;">You should see identical green bars going from light green
(left) to dark green (right).</div>
</body>
</html>
|