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;
51 background-color: blue;
54 background-color: green;
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 class=
"first" data-expected-width=
"75" data-offset-x=
"0" style=
"flex: 1 0 0; margin: 0 auto;"></div>
70 <div class=
"second" 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 class=
"third" 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 class=
"first" data-expected-width=
"75" data-offset-x=
"525" style=
"flex: 1 0 0; margin: 0 auto;"></div>
76 <div class=
"second" 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 class=
"third" 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 class=
"first" data-expected-width=
"75" data-offset-x=
"525" style=
"flex: 1 0 0; margin: 0 auto;"></div>
82 <div class=
"second" 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 class=
"third" 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 class=
"first" data-expected-width=
"75" data-offset-x=
"0" style=
"flex: 1 0 0; margin: 0 auto;"></div>
88 <div class=
"second" 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 class=
"third" 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 class=
"first" data-expected-height=
"150" data-offset-y=
"0" style=
"flex: 1 0 0; margin: auto 200px auto 150px;"></div>
95 <div class=
"second" 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 class=
"third" 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 class=
"first" data-expected-height=
"150" data-offset-y=
"450" style=
"flex: 1 0 0; margin: auto 200px auto 150px;"></div>
103 <div class=
"second" 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 class=
"third" 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 class=
"first" 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 class=
"second" 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 class=
"third" 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 class=
"first" 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 class=
"second" 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 class=
"third" 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 class=
"first" data-offset-x=
"0" data-expected-width=
"500" style=
"flex: 1 0 0; min-width: 300px"></div>
127 <div class=
"second" 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 class=
"first" data-offset-x=
"100" data-expected-width=
"500" style=
"flex: 1 0 0; min-width: 300px"></div>
134 <div class=
"second" 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 class=
"first" data-offset-x=
"100" data-expected-width=
"500" style=
"flex: 1 0 0; min-width: 300px; margin-bottom: 100px"></div>
141 <div class=
"second" 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 class=
"first" data-offset-x=
"0" data-expected-width=
"500" style=
"flex: 1 0 0; min-width: 300px; margin-bottom: 100px"></div>
148 <div class=
"second" 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>