Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / getComputedStyle / getComputedStyle-outline-shorthand.html
blob1408e3700aa395eff855fb18d02ad80e91a25920
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 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);
32 </script>
33 </body>
34 </html>