Revision control

1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2
<html>
3
<head>
4
<script src="../resources/js-test-pre.js"></script>
5
<script src="resources/paged-media-test-utils.js"></script>
6
</head>
7
<body>
8
<p id="description"></p>
9
<div id="console"></div>
10
<div id="sandbox"></div>
11
<script>
12
description("Test for big margin.");
13
14
function test()
15
{
16
createBlockWithRatioToPageHeight("page1", 0.1).style.pageBreakBefore = "always";
17
createBlockWithRatioToPageHeight("page2", 0.1).style.marginTop = "100000px";
18
19
pageNumberForElementShouldBe("page1", 1);
20
// Instead of inserting many empty pages, we should place block 'page2'
21
// on the next page, collapsing the margin between vetically adjacent blocks.
22
pageNumberForElementShouldBe("page2", 2);
23
24
document.body.removeChild(document.getElementById("sandbox"));
25
}
26
27
var successfullyParsed = true;
28
</script>
29
<script>runPrintingTest(test);</script>
30
<script src="../resources/js-test-post.js"></script>
31
</body>
32
</html>