3 <script src=
"../../resources/js-test.js"></script>
14 background-color: red;
16 -moz-box-orient: vertical;
17 -webkit-box-orient: vertical;
25 -moz-box-align: stretch;
26 -webkit-box-align: stretch;
31 background-color: green;
36 <div class=
"box outer">
37 <button class=
"inner" type=
"submit" id=
"button"></button>
39 <div class=
"box outer">
40 <input class=
"inner" type=
"text" value=
"" id=
"inputText">
42 <div class=
"box outer">
43 <textarea class=
"inner" id=
"textarea"></textarea>
45 <div class=
"box outer">
46 <input class=
"inner" type=
"submit" value=
"" id=
"submit">
48 <p id=
"description"></p>
49 <div id=
"console"></div>
51 description("Check if form controls in vertical flex box will stretch horizontally when rendered as box as opposed to inline-box. If you see any red, then the test has failed.");
56 element
= document
.getElementById("button");
57 shouldBe("element.offsetHeight", "100");
58 shouldBe("element.offsetWidth", "100");
61 element
= document
.getElementById("inputText");
62 shouldBe("element.offsetHeight", "100");
63 shouldBe("element.offsetWidth", "100");
66 element
= document
.getElementById("textarea");
67 shouldBe("element.offsetHeight", "100");
68 shouldBe("element.offsetWidth", "100");
71 element
= document
.getElementById("submit");
72 shouldBe("element.offsetHeight", "100");
73 shouldBe("element.offsetWidth", "100");