blob: 57106a2e47414c962143142f307e5f778b79cc58 [file]
<!DOCTYPE html>
<html>
<head>
<script src="../../../resources/js-test.js"></script>
</head>
<body>
<script>
description("Test that page-break-inside property is not inherited");
var parent = document.createElement("div");
parent.setAttribute("style", "page-break-inside: avoid");
var child = document.createElement("div");
parent.appendChild(child);
document.body.appendChild(parent);
shouldBe("window.getComputedStyle(parent).pageBreakInside", '"avoid"');
shouldBe("window.getComputedStyle(child).pageBreakInside", '"auto"');
document.body.removeChild(parent);
</script>
</body>
</html>