Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / box-decoration-break / box-decoration-break-parsing.html
blob15a170e60e82748fc310b6db51d70c714f0effad
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("Test to make sure the box-decoration-break property is correctly parsed.")
12 var testContainer = document.createElement("div");
13 document.body.appendChild(testContainer);
15 testContainer.innerHTML = '<p id="test">Hello world</p>';
17 e = document.getElementById('test');
18 computedStyle = window.getComputedStyle(e, null);
20 e.style.webkitBoxDecorationBreak = "slice";
21 shouldBe("e.style.getPropertyValue('-webkit-box-decoration-break')", "'slice'");
22 shouldBe("computedStyle.getPropertyValue('-webkit-box-decoration-break')", "'slice'");
24 e.style.webkitBoxDecorationBreak = "clone";
25 shouldBe("e.style.getPropertyValue('-webkit-box-decoration-break')", "'clone'");
26 shouldBe("computedStyle.getPropertyValue('-webkit-box-decoration-break')", "'clone'");
28 e.style.webkitBoxDecorationBreak = "";
29 e.style.webkitBoxDecorationBreak = "invalid";
30 shouldBeEqualToString("e.style.getPropertyValue('-webkit-box-decoration-break')", "");
31 shouldBe("computedStyle.getPropertyValue('-webkit-box-decoration-break')", "'slice'");
33 document.body.removeChild(testContainer);
35 </script>
36 </body>
37 </html>