3 <script src=
"../../resources/js-test.js"></script>
14 background-color: red;
16 -webkit-box-align: top;
22 -moz-box-orient: vertical;
23 -webkit-box-orient: vertical;
28 -moz-box-orient: horizontal;
29 -webkit-box-orient: horizontal;
30 box-orient: horizontal;
36 background-color: black;
39 div.expandVerticalBottom {
42 background-color: black;
46 border-left:
60px solid olive;
47 border-top:
2px solid blue;
52 div.shrinkVerticalBottom {
55 background-color: black;
59 border-left:
60px solid olive;
60 border-top:
2px solid blue;
65 div.horizontalMiddle {
68 background-color: black;
71 div.expandHorizontalRight {
74 background-color: black;
78 border-left:
2px solid olive;
79 border-top:
60px solid blue;
84 div.shrinkHorizontalRight {
87 background-color: black;
91 border-left:
2px solid olive;
92 border-top:
60px solid blue;
99 <div class=
"box vertical outer" id=
"expandVertical">
100 <div class=
"verticalMiddle"></div>
101 <div class=
"expandVerticalBottom"></div>
103 <div class=
"box vertical outer" id=
"shrinkVertical">
104 <div class=
"verticalMiddle"></div>
105 <div class=
"shrinkVerticalBottom"></div>
107 <div class=
"box horizontal outer" id=
"expandHorizontal">
108 <div class=
"horizontalMiddle"></div>
109 <div class=
"expandHorizontalRight"></div>
111 <div class=
"box horizontal outer" id=
"shrinkHorizontal">
112 <div class=
"horizontalMiddle"></div>
113 <div class=
"shrinkHorizontalRight"></div>
115 <p id=
"description"></p>
116 <div id=
"console"></div>
118 description("Check if box-flex specified flexboxes expand or shrink correctly. If you see any scrollbars, then the test has failed.");
122 debug("vertically expanding");
123 element
= document
.getElementById("expandVertical");
124 shouldBe("element.scrollHeight", "100");
125 shouldBe("element.scrollWidth", "100");
127 debug("vertically shrinking");
128 element
= document
.getElementById("shrinkVertical");
129 shouldBe("element.scrollHeight", "100");
130 shouldBe("element.scrollWidth", "100");
132 debug("horizontally expanding");
133 element
= document
.getElementById("expandHorizontal");
134 shouldBe("element.scrollHeight", "100");
135 shouldBe("element.scrollWidth", "100");
137 debug("horizontally shrinking");
138 element
= document
.getElementById("shrinkHorizontal");
139 shouldBe("element.scrollHeight", "100");
140 shouldBe("element.scrollWidth", "100");