5 <script src=
"../../../resources/js-test.js"></script>
10 description("Tests that the outline shorthand is computed properly.")
12 var testContainer
= document
.createElement("div");
13 testContainer
.contentEditable
= true;
14 document
.body
.appendChild(testContainer
);
16 testContainer
.innerHTML
= '<div style="width:100px;height:100px"><div id="test">hello</div></div>';
18 e
= document
.getElementById('test');
19 computedStyle
= window
.getComputedStyle(e
, null);
21 e
.style
.outline
= "thick solid red";
22 shouldBe("computedStyle.getPropertyValue('outline')", "'rgb(255, 0, 0) solid 5px'");
24 e
.style
.outline
= "2em solid";
25 shouldBe("computedStyle.getPropertyValue('outline')", "'rgb(0, 0, 0) solid 32px'");
27 e
.style
.outline
= "4px none red";
28 shouldBe("computedStyle.getPropertyValue('outline')", "'rgb(255, 0, 0) none 0px'");
30 document
.body
.removeChild(testContainer
);