summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css/border-shorthand-initialize-longhands.html
blob: acb06fa680e2355f121318b049703a5faa184e9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<html>
<body>
<script src="../../resources/js-test.js"></script>
<script>

description("This test ensures border shorthand property initializes longhand properties such as border-top-style and border-right-color.");

var div = document.createElement('div');
shouldBe("div.setAttribute('style', 'border: 1px');div.style.borderTopStyle", "'initial'");
shouldBe("div.style.borderTopStyle", "'initial'");
shouldBe("div.style.borderRightStyle", "'initial'");
shouldBe("div.style.borderBottomStyle", "'initial'");
shouldBe("div.style.borderLeftStyle", "'initial'");

shouldBe("div.style.borderTopColor", "'initial'");
shouldBe("div.style.borderRightColor", "'initial'");
shouldBe("div.style.borderBottomColor", "'initial'");
shouldBe("div.style.borderLeftColor", "'initial'");

shouldBe("div.setAttribute('style', 'border: solid');div.style.borderTopWidth", "'initial'");
shouldBe("div.style.borderRightWidth", "'initial'");
shouldBe("div.style.borderBottomWidth", "'initial'");
shouldBe("div.style.borderLeftWidth", "'initial'");

</script>
</body>
</html>