Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / printing / script-tests / page-break-margin-collapsed.js
blob6f7680413aa04b31e2f87f0db2230e5a4b91d3eb
1 description("Test for big margin.");
3 function test()
5     createBlockWithRatioToPageHeight("page1", 0.1).style.pageBreakBefore = "always";
6     createBlockWithRatioToPageHeight("page2", 0.1).style.marginTop = "100000px";
8     pageNumberForElementShouldBe("page1", 1);
9     // Instead of inserting many empty pages, we should place block 'page2'
10     // on the next page, collapsing the margin between vetically adjacent blocks.
11     pageNumberForElementShouldBe("page2", 2);
13     document.body.removeChild(document.getElementById("sandbox"));
16 var successfullyParsed = true;