1 description("Check if box-orient is working in <button>. See https://bugs.webkit.org/show_bug.cgi?id=25406");
3 function setFlexDirection(element
, flexDirection
) {
4 element
.style
.webkitFlexDirection
= flexDirection
;
5 element
.style
.flexDirection
= flexDirection
;
9 return document
.getElementById(id
);
12 setFlexDirection(gebi("toVertical"), "column");
13 setFlexDirection(gebi("toHorizontal"), "row");
15 var referenceHorizontalHeight
= gebi("reference_horizontal").clientHeight
;
16 var referenceVerticalHeight
= gebi("reference_vertical").clientHeight
;
17 shouldBe("gebi('default').clientHeight", "referenceHorizontalHeight");
18 shouldBe("gebi('horizontal').clientHeight", "referenceHorizontalHeight");
19 shouldBe("gebi('vertical').clientHeight", "referenceVerticalHeight");
20 shouldBe("gebi('toHorizontal').clientHeight", "referenceHorizontalHeight");
21 shouldBe("gebi('toVertical').clientHeight", "referenceVerticalHeight");
23 // If we are in DRT, we don't need meaningless messages.
24 if (window
.testRunner
)
25 document
.getElementById("main").innerHTML
= "";