2 <link href="resources/flexbox.css" rel="stylesheet">
6 background-color: purple;
13 background-color: purple;
15 -webkit-writing-mode: vertical-rl;
19 background-color: red;
22 <script src="../../resources/check-layout.js"></script>
24 function changeHeight()
26 document.getElementById('dynamicHorizontalChild').style.height = "90%";
27 document.getElementById('dynamicVerticalChild').style.width = "30%";
28 checkLayout('.flexbox');
31 <body onload="changeHeight()">
32 <div class="flexbox horizontal">
33 <div data-expected-height="50" class="flex-one">
34 <div data-expected-height="35" style="height: 70%; background-color: lime"></div>
38 <div class="flexbox horizontal">
39 <div data-expected-height="50" class="flex-one">
40 <div id="dynamicHorizontalChild" data-expected-height="45" style="height: 70%; background-color: lime"></div>
44 <div class="flexbox horizontal">
45 <div data-expected-height="50" class="flex-one" style="padding: 10px; border: 2px solid black">
46 <div data-expected-height="18" style="height: 70%; background-color: lime"></div>
50 <div class="flexbox horizontal">
51 <img data-expected-height="25" style="max-height: 50%" src="../images/resources/green-10.png" />
54 <div class="flexbox horizontal">
55 <div data-expected-height="25" class="flex-one" style="max-height:50%">
56 <div data-expected-height="13" style="height: 50%; background-color: lime"></div>
60 <div class="flexbox wrap align-content-flex-start" style="width: 100px; height: 100px; background-color: yellow; padding: 3px;">
61 <div data-expected-height="30" style="min-height: 30%; width: 80px; background-color: purple; margin: 2px; ">
62 <div data-expected-height="15" style="background-color: red; height: 50%; width: 20px;"></div>
64 <div data-expected-height="40" style="height: 40px; width: 80px; background-color: green; margin: 2px;"></div>
67 <div class="flexbox vertical">
68 <div data-expected-width="50" class="flex-one">
69 <div data-expected-width="25" style="width: 50%; background-color: lime"></div>
73 <div class="flexbox vertical">
74 <div data-expected-width="50" class="flex-one">
75 <div id="dynamicVerticalChild" data-expected-width="15" style="width: 50%; background-color: lime"></div>
79 <div class="flexbox vertical">
80 <div data-expected-width="50" class="flex-one" style="padding: 10px; border: 2px solid black">
81 <div data-expected-width="13" style="width: 50%; background-color: lime"></div>
85 <div class="flexbox vertical">
86 <img data-expected-width="25" style="max-width: 50%" src="../images/resources/green-10.png" />
89 <div class="flexbox vertical">
90 <div data-expected-width="25" class="flex-one" style="max-width: 50%">
91 <div data-expected-width="13" style="width: 50%; background-color: lime"></div>