Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / border-shorthand-initialize-longhands.html
blobacb06fa680e2355f121318b049703a5faa184e9f
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script src="../../resources/js-test.js"></script>
5 <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'");
26 </script>
27 </body>
28 </html>