5 <script src=
"../../../resources/js-test.js"></script>
10 description("Tests that the border-style shorthand is computed properly.")
12 var testContainer
= document
.createElement("div");
13 testContainer
.contentEditable
= true;
14 document
.body
.appendChild(testContainer
);
16 testContainer
.innerHTML
= '<div id="test">hello</div>';
18 e
= document
.getElementById('test');
19 computedStyle
= window
.getComputedStyle(e
, null);
21 e
.style
.borderStyle
= "solid dotted";
22 shouldBe("computedStyle.getPropertyValue('border-style')", "'solid dotted'");
24 e
.style
.borderStyle
= "solid dotted groove dashed";
25 shouldBe("computedStyle.getPropertyValue('border-style')", "'solid dotted groove dashed'");
27 document
.body
.removeChild(testContainer
);