3 <link href=
"resources/flexbox.css" rel=
"stylesheet">
9 background-color: #aaa;
16 .flexbox
> :nth-child(
1) {
17 background-color: blue;
19 .flexbox
> :nth-child(
2) {
20 background-color: green;
22 .flexbox
> :nth-child(
3) {
23 background-color: red;
30 background-color: yellow !important;
33 <script src=
"../../resources/check-layout.js"></script>
34 <body onload=
"checkLayout('.flexbox')">
35 <div class=
"flexbox" style=
"width: 600px">
36 <div data-expected-height=
"100" class=
"flex-one" style=
"position: relative">
37 <div data-offset-x=
"0" data-offset-y=
"50" class=
"absolute" style=
"bottom:0;"></div>
39 <div data-expected-height=
"100" class=
"flex-one" style=
"height: 100px"></div>
40 <div data-expected-height=
"100" class=
"flex-one" style=
"position: relative">
41 <div data-offset-x=
"0" data-offset-y=
"50" class=
"absolute" style=
"bottom:0;"></div>
45 <div style=
"-webkit-writing-mode: horizontal-bt">
46 <div class=
"flexbox" style=
"width: 600px">
47 <div data-expected-height=
"100" class=
"flex-one" style=
"position: relative">
48 <div data-offset-x=
"0" data-offset-y=
"0" class=
"absolute" style=
"top:0;"></div>
50 <div data-expected-height=
"100" class=
"flex-one" style=
"height: 100px"></div>
51 <div data-expected-height=
"100" class=
"flex-one" style=
"position: relative">
52 <div data-offset-x=
"0" data-offset-y=
"50" class=
"absolute" style=
"bottom:0;"></div>
57 <div style=
"-webkit-writing-mode: vertical-rl">
58 <div class=
"flexbox" style=
"height: 200px">
59 <div data-expected-width=
"100" class=
"flex-one" style=
"position: relative">
60 <div data-offset-x=
"0" data-offset-y=
"0" class=
"absolute" style=
"left:0;"></div>
62 <div data-expected-width=
"100" class=
"flex-one" style=
"width: 100px"></div>
63 <div data-expected-width=
"100" class=
"flex-one" style=
"position: relative">
64 <div data-offset-x=
"0" data-offset-y=
"0" class=
"absolute" style=
"left:0;"></div>
69 <div style=
"-webkit-writing-mode: vertical-lr">
70 <div class=
"flexbox" style=
"height: 200px">
71 <div data-expected-width=
"100" class=
"flex-one" style=
"position: relative">
72 <div data-offset-x=
"50" data-offset-y=
"0" class=
"absolute" style=
"right:0;"></div>
74 <div data-expected-width=
"100" class=
"flex-one" style=
"width: 100px"></div>
75 <div data-expected-width=
"100" class=
"flex-one" style=
"position: relative">
76 <div data-offset-x=
"0" data-offset-y=
"0" class=
"absolute" style=
"left:0;"></div>
81 <div class=
"flexbox" style=
"height: 50px; width: 600px;">
82 <div data-expected-height=
"50" style=
"background-color: yellow; width: 300px">
83 <div data-expected-height=
"60" style=
"height: 60px; width: 10px; background-color: orange"></div>
87 <div class=
"flexbox column" style=
"width: 100px;">
88 <div data-expected-width=
"100" data-expected-height=
"50" style=
"background-color: yellow;">
89 <div data-expected-width=
"200" style=
"height: 50px; width: 200px; background-color: orange"></div>