Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / getComputedStyle / getComputedStyle-border-style-shorthand.html
blob2b0b5dbbc37f381f7d5b9efb3ef57abd0a980203
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <script src="../../../resources/js-test.js"></script>
6 </head>
7 <body>
8 <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);
29 </script>
30 </body>
31 </html>