blob: b940060773d60abf391540e34cede9e10f9ca4cd [file] [log] [blame]
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).getPropertyCSSValue('page-break-inside').getStringValue()", '"avoid"');
shouldBe("window.getComputedStyle(child).getPropertyCSSValue('page-break-inside').getStringValue()", '"auto"');
document.body.removeChild(parent);