Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / css3 / flexbox / flex-order.html
blobb6bf574de1621355cc8d17308a4c6ea0a5e99cef
1 <!DOCTYPE html>
2 <html>
3 <style>
4 body {
5 margin: 0;
7 .horizontal-box {
8 display: flex;
10 .horizontal-box div {
11 height: 30px;
12 border: 0;
13 margin-bottom: 10px;
14 flex: 1;
17 .first {
18 background-color: #0f0;
20 .second {
21 background-color: #0d0;
23 .third {
24 background-color: #090;
26 .fourth {
27 background-color: #060;
29 .fifth {
30 background-color: #030;
32 </style>
33 <body>
35 <div class="horizontal-box">
36 <div class="first" style="order: 0"></div>
37 <div class="second" style=""></div>
38 <div class="third" style="order: 3"></div>
39 <div class="fourth" style="order: 20"></div>
40 </div>
42 <div class="horizontal-box">
43 <div class="fourth" style="order: 4"></div>
44 <div class="third" style="order: 3"></div>
45 <div class="second" style="order: 2"></div>
46 <div class="first" style="order: 1"></div>
47 </div>
49 <!-- The example from the spec. -->
50 <div class="horizontal-box">
51 <div class="third" style="order: 1"></div>
52 <div class="first" style=""></div>
53 <div class="fourth" style="order: 1"></div>
54 <div class="second" style="order: 0"></div>
55 </div>
57 <div class="horizontal-box">
58 <div class="fourth" style="order: 2"></div>
59 <div class="second" style=""></div>
60 <div class="third" style=""></div>
61 <div class="first" style="order: -10"></div>
62 </div>
64 <div class="horizontal-box">
65 <div class="fourth" style="order: 2000000000"></div>
66 <div class="second" style="order: 1000000000"></div>
67 <div class="third" style="order: 1000000000"></div>
68 <div class="first" style="order: -1000000000"></div>
69 </div>
71 <!-- Floating numbers are ignored and we use the default of 1 instead. -->
72 <div class="horizontal-box">
73 <div class="second" style="order: 2.5"></div>
74 <div class="fourth" style="order: 2"></div>
75 <div class="first" style="order: -1"></div>
76 <div class="third" style=""></div>
77 </div>
79 <div class="horizontal-box">
80 <div class="second" style="order: 0"></div>
81 <div class="first" style="order: -1"></div>
82 <div class="fourth" style="order: 1"></div>
83 <div class="third" style=""></div>
84 </div>
86 <!-- Values greater than what can be stored in an int are clamped from
87 -2,147,483,646 (int min + 2) to 2,147,483,647. -->
88 <div class="horizontal-box">
89 <div class="third" style="order: 4000000000"></div>
90 <div class="fourth" style="order: 3000000000"></div>
91 <div class="first" style=""></div>
92 <div class="second" style="order: 2147483646"></div>
93 </div>
95 <div class="horizontal-box">
96 <div class="second" style="order: 4000000000"></div>
97 <div class="third" style="order: 3000000000"></div>
98 <div class="first" style=""></div>
99 <div class="fourth" style="order: 2147483647"></div>
100 </div>
102 <div class="horizontal-box">
103 <div class="third" style="order: -2147483645"></div>
104 <div class="first" style="order: -2147483646"></div>
105 <div class="second" style="order: -2147483647"></div>
106 <div class="fourth" style=""></div>
107 </div>
109 <div class="horizontal-box">
110 <div class="third" style="order: calc(-2147483640 - 5)"></div>
111 <div class="first" style="order: calc(-2147483640 - 6)"></div>
112 <div class="second" style="order: calc(-2147483640 - 7)"></div>
113 <div class="fourth" style=""></div>
114 </div>
116 <!-- This should not crash. -->
117 <div class="horizontal-box"></div>
119 <div style="position:absolute; left: -10000px;">You should see identical green bars going from light green
120 (left) to dark green (right).</div>
122 </body>
123 </html>