5 display: -webkit-flexbox;
6 background-color: #aaa;
10 margin: 2px 13px 8px 17px;
12 .flexbox > div:not(.nested) {
16 .flexbox > .nested > div:not(.nested) {
20 .flexbox > .nested > .nested > div {
25 .flexbox > :nth-child(1) {
26 background-color: blue;
28 .flexbox > :nth-child(2) {
29 background-color: green;
31 .flexbox > div > :nth-child(1) {
32 background-color: pink;
34 .flexbox > div > :nth-child(2) {
35 background-color: purple;
37 .flexbox > div > div > :nth-child(1) {
38 background-color: red;
40 .flexbox > div > div > :nth-child(2) {
41 background-color: yellow;
45 display: -webkit-flexbox;
46 background-color: #ddd;
49 -webkit-writing-mode: horizontal-tb;
52 -webkit-writing-mode: vertical-lr;
55 -webkit-flex-flow: column;
62 if (window.layoutTestController)
63 layoutTestController.dumpAsText();
65 <script src="resources/flexbox.js"></script>
66 <body onload="checkFlexBoxen()">
68 <div class="flexbox" data-expected-height=70 data-expect-width=90>
69 <div class="column nested" data-expected-height=60 data-expect-width=20>
77 <div class="flexbox vertical-lr" data-expected-height=115 data-expect-width=80>
78 <div class="horizontal-tb nested" data-expected-height=80 data-expect-width=50>
79 <div class="vertical-lr nested" data-expected-height=80 data-expect-width=30>
89 <div class="flexbox vertical-lr" data-expected-height=65 data-expect-width=70>
90 <div class="column nested" data-expected-height=30 data-expect-width=40>
98 <div class="flexbox vertical-lr" data-expected-height=65 data-expect-width=70>
99 <div class="nested horizontal-tb" data-expected-height=30 data-expect-width=40>
107 <div class="flexbox" data-expected-height=70 data-expect-width=90>
108 <div class="nested vertical-lr" data-expected-height=60 data-expect-width=20>