4 <link href=
"resources/flexbox.css" rel=
"stylesheet">
14 .flexbox
> :nth-child(
1) {
15 background-color: lightgreen;
17 .flexbox
> :nth-child(
2) {
18 background-color: lightblue;
23 <p>This tests that when setting the height of a flex item to a percentage
24 height, we use the content height with scrollbars. The content should not be
25 scrollable in any of the test cases below.
</p>
27 <div class=
"flexbox column">
28 <div style=
"height: 100%"></div>
31 <div class=
"flexbox column">
32 <div style=
"height: 100%; box-sizing: border-box; border: 5px solid green"></div>
35 <div class=
"flexbox column wrap">
36 <div style=
"height: 50px; width: 50%;"></div>
37 <div style=
"height: 50px; width: 50%; background-color: lightblue"></div>
40 <div class=
"flexbox column wrap align-content-flex-start" style=
"height: auto; max-height: 100px; padding: 10px;">
41 <div style=
"height: 50px; width: 300px;"></div>
42 <div style=
"height: 50px; width: 300px; background-color: lightblue"></div>