Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / css3 / flexbox / flex-flow.html
blob2076aaa094eb83901aefe66145de4f471eb71080
1 <!DOCTYPE html>
2 <html>
3 <style>
4 body {
5 margin: 0;
7 .flexbox {
8 width: 600px;
9 display: flex;
10 background-color: grey;
12 .flexbox > div {
13 height: 20px;
14 width: 20px;
15 border: 0;
18 .rtl {
19 direction: rtl;
22 .bt {
23 -webkit-writing-mode: horizontal-bt;
26 .vertical-rl, .vertical-lr, .column, .column-reverse {
27 height: 600px;
30 .vertical-rl {
31 -webkit-writing-mode: vertical-rl;
34 .vertical-lr {
35 -webkit-writing-mode: vertical-lr;
38 .row-reverse {
39 flex-flow: row-reverse;
42 .column {
43 flex-flow: column;
46 .column-reverse {
47 flex-flow: column-reverse;
50 .flexbox > :nth-child(1) {
51 background-color: blue;
53 .flexbox > :nth-child(2) {
54 background-color: green;
56 .flexbox > :nth-child(3) {
57 background-color: red;
60 .flexbox > div > div {
61 background-color: orange;
62 height: 10px;
64 </style>
65 <script src="../../resources/check-layout.js"></script>
66 <body onload="checkLayout('.flexbox')">
68 <div class="flexbox">
69 <div data-expected-width="75" data-offset-x="0" style="flex: 1 0 0; margin: 0 auto;"></div>
70 <div data-expected-width="350" data-offset-x="75" style="flex: 2 0 0; -webkit-padding-start: 200px"><div data-offset-x="275"></div></div>
71 <div data-expected-width="75" data-offset-x="425" style="flex: 1 0 0; -webkit-margin-end: 100px;"></div>
72 </div>
74 <div class="flexbox rtl">
75 <div data-expected-width="75" data-offset-x="525" style="flex: 1 0 0; margin: 0 auto;"></div>
76 <div data-expected-width="350" data-offset-x="175" style="flex: 2 0 0; -webkit-padding-start: 200px"><div data-offset-x="175"></div></div>
77 <div data-expected-width="75" data-offset-x="100" style="flex: 1 0 0; -webkit-margin-end: 100px;"></div>
78 </div>
80 <div class="flexbox row-reverse">
81 <div data-expected-width="75" data-offset-x="525" style="flex: 1 0 0; margin: 0 auto;"></div>
82 <div data-expected-width="350" data-offset-x="175" style="flex: 2 0 0; -webkit-padding-start: 200px"><div data-offset-x="375"></div></div>
83 <div data-expected-width="75" data-offset-x="0" style="flex: 1 0 0; -webkit-margin-end: 100px;"></div>
84 </div>
86 <div class="flexbox rtl row-reverse">
87 <div data-expected-width="75" data-offset-x="0" style="flex: 1 0 0; margin: 0 auto;"></div>
88 <div data-expected-width="350" data-offset-x="75" style="flex: 2 0 0; -webkit-padding-start: 200px"><div data-offset-x="75"></div></div>
89 <div data-expected-width="75" data-offset-x="525" style="flex: 1 0 0; -webkit-margin-end: 100px;"></div>
90 </div>
92 <div style="position: relative;">
93 <div class="flexbox column">
94 <div data-expected-height="150" data-offset-y="0" style="flex: 1 0 0; margin: auto 200px auto 150px;"></div>
95 <div data-expected-height="300" data-offset-y="150" style="flex: 2 0 0; -webkit-padding-start: 200px"><div data-offset-y="150" data-offset-x="200"></div></div>
96 <div data-expected-height="150" data-offset-y="450" style="flex: 1 0 0; -webkit-margin-end: 100px;"></div>
97 </div>
98 </div>
100 <div style="position: relative;">
101 <div class="flexbox column-reverse">
102 <div data-expected-height="150" data-offset-y="450" style="flex: 1 0 0; margin: auto 200px auto 150px;"></div>
103 <div data-expected-height="300" data-offset-y="150" style="flex: 2 0 0; -webkit-padding-start: 200px"><div data-offset-y="150" data-offset-x="200"></div></div>
104 <div data-expected-height="150" data-offset-y="0" style="flex: 1 0 0; -webkit-margin-end: 100px;"></div>
105 </div>
106 </div>
108 <div style="position: relative;">
109 <div class="flexbox column rtl">
110 <div data-expected-height="150" data-offset-y="0" data-offset-x="480" style="flex: 1 0 0; margin: auto 100px auto 50px;"></div>
111 <div data-expected-height="300" data-offset-y="150" style="flex: 2 0 0; -webkit-padding-start: 200px"><div data-offset-y="150" data-offset-x="380"></div></div>
112 <div data-expected-height="150" data-offset-y="450" data-offset-x="580" style="flex: 1 0 0; -webkit-margin-end: 100px;"></div>
113 </div>
114 </div>
116 <div style="position: relative;">
117 <div class="flexbox column-reverse rtl">
118 <div data-expected-height="150" data-offset-y="450" data-offset-x="480" style="flex: 1 0 0; margin: auto 100px auto 50px;"></div>
119 <div data-expected-height="300" data-offset-y="150" style="flex: 2 0 0; -webkit-padding-start: 200px"><div data-offset-y="150" data-offset-x="380"></div></div>
120 <div data-expected-height="150" data-offset-y="0" data-offset-x="580" style="flex: 1 0 0; -webkit-margin-end: 100px;"></div>
121 </div>
122 </div>
124 <div style="position: relative;">
125 <div data-expected-height="600" class="flexbox vertical-lr column">
126 <div data-offset-x="0" data-expected-width="500" style="flex: 1 0 0; min-width: 300px"></div>
127 <div data-offset-x="500" data-offset-y="100" data-expected-width="100" style="flex: 1 0 200px; max-width: 100px; margin: 100px 0 50px 0;"></div>
128 </div>
129 </div>
131 <div style="position: relative;">
132 <div data-expected-height="600" class="flexbox vertical-lr column-reverse">
133 <div data-offset-x="100" data-expected-width="500" style="flex: 1 0 0; min-width: 300px"></div>
134 <div data-offset-x="0" data-offset-y="100" data-expected-width="100" style="flex: 1 0 200px; max-width: 100px; margin: 100px 0 50px 0;"></div>
135 </div>
136 </div>
138 <div style="position: relative;">
139 <div data-expected-height="600" class="flexbox vertical-rl column">
140 <div data-offset-x="100" data-expected-width="500" style="flex: 1 0 0; min-width: 300px; margin-bottom: 100px"></div>
141 <div data-offset-x="0" data-offset-y="100" data-expected-width="100" style="flex: 1 0 200px; max-width: 100px; margin: 100px 0 50px 0;"></div>
142 </div>
143 </div>
145 <div style="position: relative;">
146 <div data-expected-height="600" class="flexbox vertical-rl column-reverse">
147 <div data-offset-x="0" data-expected-width="500" style="flex: 1 0 0; min-width: 300px; margin-bottom: 100px"></div>
148 <div data-offset-x="500" data-offset-y="100" data-expected-width="100" style="flex: 1 0 200px; max-width: 100px; margin: 100px 0 50px 0;"></div>
149 </div>
150 </div>
152 </body>
153 </html>