6 background-color: #aaa;
10 margin:
2px
13px
8px
17px;
13 .flexbox
> div:not(.nested) {
17 .flexbox
> .nested
> div:not(.nested) {
21 .flexbox
> .nested
> .nested
> div {
26 .flexbox
> :nth-child(
1) {
27 background-color: blue;
29 .flexbox
> :nth-child(
2) {
30 background-color: green;
32 .flexbox
> div
> :nth-child(
1) {
33 background-color: pink;
35 .flexbox
> div
> :nth-child(
2) {
36 background-color: purple;
38 .flexbox
> div
> div
> :nth-child(
1) {
39 background-color: red;
41 .flexbox
> div
> div
> :nth-child(
2) {
42 background-color: yellow;
47 background-color: #ddd;
50 -webkit-writing-mode: horizontal-tb;
53 -webkit-writing-mode: vertical-lr;
62 <script src=
"../../resources/check-layout.js"></script>
63 <body onload=
"checkLayout('.flexbox')">
65 <div class=
"flexbox" data-expected-height=
70 data-expect-width=
90>
66 <div class=
"column nested" data-expected-height=
60 data-expect-width=
20>
74 <div class=
"flexbox vertical-lr" data-expected-height=
115 data-expect-width=
80>
75 <div class=
"horizontal-tb nested" data-expected-height=
80 data-expect-width=
50>
76 <div class=
"vertical-lr nested" data-expected-height=
80 data-expect-width=
30>
86 <div class=
"flexbox vertical-lr" data-expected-height=
65 data-expect-width=
70>
87 <div class=
"column nested" data-expected-height=
30 data-expect-width=
40>
95 <div class=
"flexbox vertical-lr" data-expected-height=
65 data-expect-width=
70>
96 <div class=
"nested horizontal-tb" data-expected-height=
30 data-expect-width=
40>
104 <div class=
"flexbox" data-expected-height=
70 data-expect-width=
90>
105 <div class=
"nested vertical-lr" data-expected-height=
60 data-expect-width=
20>