1 description("Test for page-break with 'display:none'");
5 createBlockWithRatioToPageHeight("page1-1", 0.1).style.pageBreakBefore = "always";
7 // if 'display' is 'none', page break property should not have any effect.
8 var block = createBlockWithRatioToPageHeight("displaynone", 0.1);
9 block.style.pageBreakBefore = "always";
10 block.style.display = "none";
12 createBlockWithRatioToPageHeight("page1-2", 0.1);
14 pageNumberForElementShouldBe("page1-1", 1);
15 pageNumberForElementShouldBe("displaynone", -1);
16 pageNumberForElementShouldBe("page1-2", 1);
18 document.body.removeChild(document.getElementById("sandbox"));
21 var successfullyParsed = true;