5 <script src=
"../../resources/js-test.js"></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
);