1 description("Test for page-break-before:always and page-break-after:always");
5 createBlockWithRatioToPageHeight("firstPage", 0.1);
6 createBlockWithRatioToPageHeight("secondPage1", 0.1).style.pageBreakBefore = "always";
7 createBlockWithRatioToPageHeight("secondPage2", 0.1).style.pageBreakAfter = "always";
8 createBlockWithRatioToPageHeight("thirdPage", 0.1).style.pageBreakBefore = "always";
10 pageNumberForElementShouldBe('firstPage', 0);
11 pageNumberForElementShouldBe('secondPage1', 1);
12 pageNumberForElementShouldBe('secondPage2', 1);
13 // There must be only one page break between 'page-break-after: always' and 'page-break-before: always'
14 pageNumberForElementShouldBe('thirdPage', 2);
16 document.body.removeChild(document.getElementById("sandbox"));
19 var successfullyParsed = true;