9 display: -webkit-flexbox;
10 background-color: grey;
23 -webkit-writing-mode: horizontal-bt;
26 .vertical-rl, .vertical-lr, .column, .column-reverse {
31 -webkit-writing-mode: vertical-rl;
35 -webkit-writing-mode: vertical-lr;
39 -webkit-flex-flow: row-reverse;
43 -webkit-flex-flow: column;
47 -webkit-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;
66 if (window.layoutTestController)
67 layoutTestController.dumpAsText();
69 <script src="resources/flexbox.js"></script>
70 <body onload="checkFlexBoxen()">
73 <div data-expected-width="75" data-offset-x="0" style="width: -webkit-flex(1 0 0); margin: 0 auto;"></div>
74 <div data-expected-width="350" data-offset-x="75" style="width: -webkit-flex(2 0 0); -webkit-padding-start: 200px"><div data-offset-x="275"></div></div>
75 <div data-expected-width="75" data-offset-x="425" style="width: -webkit-flex(1 0 0); -webkit-margin-end: 100px;"></div>
78 <div class="flexbox rtl">
79 <div data-expected-width="75" data-offset-x="525" style="width: -webkit-flex(1 0 0); margin: 0 auto;"></div>
80 <div data-expected-width="350" data-offset-x="175" style="width: -webkit-flex(2 0 0); -webkit-padding-start: 200px"><div data-offset-x="175"></div></div>
81 <div data-expected-width="75" data-offset-x="100" style="width: -webkit-flex(1 0 0); -webkit-margin-end: 100px;"></div>
84 <div style="position: relative;">
85 <div class="flexbox column">
86 <div data-expected-height="150" data-offset-y="0" style="height: -webkit-flex(1 0 0); margin: auto 200px auto 150px;"></div>
87 <div data-expected-height="300" data-offset-y="150" style="height: -webkit-flex(2 0 0); -webkit-padding-start: 200px"><div data-offset-y="150" data-offset-x="200"></div></div>
88 <div data-expected-height="150" data-offset-y="450" style="height: -webkit-flex(1 0 0); -webkit-margin-end: 100px;"></div>
92 <div style="position: relative;">
93 <div class="flexbox column rtl">
94 <div data-expected-height="150" data-offset-y="0" data-offset-x="480" style="height: -webkit-flex(1 0 0); margin: auto 100px auto 50px;"></div>
95 <div data-expected-height="300" data-offset-y="150" style="height: -webkit-flex(2 0 0); -webkit-padding-start: 200px"><div data-offset-y="150" data-offset-x="380"></div></div>
96 <div data-expected-height="150" data-offset-y="450" data-offset-x="580" style="height: -webkit-flex(1 0 0); -webkit-margin-end: 100px;"></div>
100 <div style="position: relative;">
101 <div data-expected-height="600" class="flexbox vertical-lr column">
102 <div data-offset-x="0" data-expected-width="500" style="width: -webkit-flex(1 0 0); min-width: 300px"></div>
103 <div data-offset-x="500" data-offset-y="100" data-expected-width="100" style="width: -webkit-flex(1 0 200px); max-width: 100px; margin: 100px 0 50px 0;"></div>
107 <div style="position: relative;">
108 <div data-expected-height="600" class="flexbox vertical-rl column">
109 <div data-offset-x="100" data-expected-width="500" style="width: -webkit-flex(1 0 0); min-width: 300px; margin-bottom: 100px"></div>
110 <div data-offset-x="0" data-offset-y="100" data-expected-width="100" style="width: -webkit-flex(1 0 200px); max-width: 100px; margin: 100px 0 50px 0;"></div>