4 <script src=
"../../resources/js-test.js"></script>
7 description("This test ensures border shorthand property initializes longhand properties such as border-top-style and border-right-color.");
9 var div
= document
.createElement('div');
10 shouldBe("div.setAttribute('style', 'border: 1px');div.style.borderTopStyle", "'initial'");
11 shouldBe("div.style.borderTopStyle", "'initial'");
12 shouldBe("div.style.borderRightStyle", "'initial'");
13 shouldBe("div.style.borderBottomStyle", "'initial'");
14 shouldBe("div.style.borderLeftStyle", "'initial'");
16 shouldBe("div.style.borderTopColor", "'initial'");
17 shouldBe("div.style.borderRightColor", "'initial'");
18 shouldBe("div.style.borderBottomColor", "'initial'");
19 shouldBe("div.style.borderLeftColor", "'initial'");
21 shouldBe("div.setAttribute('style', 'border: solid');div.style.borderTopWidth", "'initial'");
22 shouldBe("div.style.borderRightWidth", "'initial'");
23 shouldBe("div.style.borderBottomWidth", "'initial'");
24 shouldBe("div.style.borderLeftWidth", "'initial'");