3 <link href=
"resources/flexbox.css" rel=
"stylesheet">
7 background-color: #aaa;
10 .flexbox :nth-child(
1) {
11 background-color: blue;
14 <script src=
"../../resources/check-layout.js"></script>
15 <body onload=
"checkLayout('.flexbox')">
17 <div class=
"flexbox column" data-expected-height=
0>
18 <div class=
"flexitem" data-expected-height=
0 style=
"flex: 100px"></div>
21 <div class=
"flexbox column" data-expected-height=
0>
22 <div class=
"flexitem2" data-expected-height=
0 style=
"flex: 100px"></div>
26 document
.querySelector('.flexitem').offsetHeight
;
27 document
.querySelector('.flexitem2').offsetHeight
;
28 document
.querySelector('.flexitem').style
.flex
= "1";
29 document
.querySelector('.flexitem2').style
.flex
= "1 auto";