Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / printing / script-tests / page-break-display-none.js
blob4ca8d856c86f42cd39eb6d34adafa8701fa8b42d
1 description("Test for page-break with 'display:none'");
3 function test()
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;