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 flex-flow: row-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;
65 <script src=
"../../resources/check-layout.js"></script>
66 <body onload=
"checkLayout('.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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>