3 <link href=
"resources/flexbox.css" rel=
"stylesheet">
9 background-color: #aaa;
16 -webkit-writing-mode: vertical-rl;
18 .flexbox :nth-child(
1) {
19 background-color: blue;
21 .flexbox :nth-child(
2) {
22 background-color: green;
24 .flexbox :nth-child(
3) {
25 background-color: red;
28 <script src=
"../../resources/check-layout.js"></script>
29 <body onload=
"checkLayout('.flexbox')">
32 <div data-expected-height=
"50" style=
"flex: 1 0 0; max-height: 100px"></div>
33 <div data-expected-height=
"50" style=
"flex: 1 0 0; height: 50px"></div>
34 <div data-expected-height=
"25" style=
"flex: 1 0 0; max-height: 25px"></div>
37 <div class=
"flexbox column" style=
"width: 200px">
38 <div data-expected-width=
"150" style=
"flex: 1 0 20px; max-width: 150px"></div>
39 <div data-expected-width=
"100" style=
"flex: 1 0 20px; width: 100px"></div>
40 <div data-expected-width=
"200" style=
"flex: 1 0 20px;"></div>
43 <div class=
"flexbox vertical-rl" style=
"height: 60px">
44 <div data-expected-width=
"100" style=
"flex: 1 0 20px; max-width: 110px"></div>
45 <div data-expected-width=
"100" style=
"flex: 1 0 20px; width: 100px"></div>
46 <div data-expected-width=
"50" style=
"flex: 1 0 20px; max-width: 50px"></div>
49 <div class=
"flexbox column vertical-rl" style=
"height: 50px">
50 <div data-expected-height=
"50" style=
"flex: 1 0 100px; max-height: 100px"></div>
51 <div data-expected-height=
"50" style=
"flex: 1 0 100px; height: 50px"></div>
52 <div data-expected-height=
"25" style=
"flex: 1 0 100px; max-height: 25px"></div>