зеркало из https://github.com/mozilla/pjs.git
Bug 159914 – Printing a div's content "eats" a few line down the first page
This commit is contained in:
Родитель
39a7edf075
Коммит
8b6738c36b
|
@ -424,7 +424,10 @@ nsAbsoluteContainingBlock::ReflowAbsoluteFrame(nsIFrame* aDelegat
|
|||
// anything totally below the fold, but we can't position frames
|
||||
// across next-in-flow breaks yet.
|
||||
if (constrainHeight) {
|
||||
kidReflowState.availableHeight = aReflowState.availableHeight - aKidFrame->GetRect().y;
|
||||
kidReflowState.availableHeight = aReflowState.availableHeight - border.top
|
||||
- kidReflowState.mComputedMargin.top;
|
||||
if (NS_AUTOOFFSET != kidReflowState.mComputedOffsets.top)
|
||||
kidReflowState.availableHeight -= kidReflowState.mComputedOffsets.top;
|
||||
}
|
||||
|
||||
// Do the reflow
|
||||
|
|
|
@ -20,3 +20,6 @@
|
|||
== content-inserted-007.xhtml content-inserted-002.ref.xhtml
|
||||
== content-inserted-008.xhtml content-inserted-001.ref.xhtml
|
||||
== content-inserted-009.xhtml content-inserted-002.ref.xhtml
|
||||
== abspos-breaking-000.xhtml abspos-breaking-000.ref.xhtml
|
||||
== abspos-breaking-001.xhtml abspos-breaking-000.ref.xhtml
|
||||
== abspos-breaking-002.xhtml abspos-breaking-000.ref.xhtml
|
||||
|
|
|
@ -0,0 +1,40 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
|
||||
<head>
|
||||
<title>AbsPos Pagination</title>
|
||||
<style type="text/css">
|
||||
html, body, pre { margin: 0; padding: 0; }
|
||||
pre {
|
||||
padding-top: 1in;
|
||||
line-height: 1;
|
||||
font-size: 0.25in;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<pre>1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24</pre>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,41 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
|
||||
<head>
|
||||
<title>AbsPos Pagination</title>
|
||||
<style type="text/css">
|
||||
html, body, pre { margin: 0; padding: 0; }
|
||||
pre {
|
||||
position: absolute;
|
||||
top: 1in;
|
||||
line-height: 1;
|
||||
font-size: 0.25in;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<pre>1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24</pre>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,42 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
|
||||
<head>
|
||||
<title>AbsPos Pagination</title>
|
||||
<style type="text/css">
|
||||
html, body, pre { margin: 0; padding: 0; }
|
||||
pre {
|
||||
position: absolute;
|
||||
margin-top: 0.5in;
|
||||
padding-top: 0.5in;
|
||||
line-height: 1;
|
||||
font-size: 0.25in;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<pre>1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24</pre>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,43 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-print">
|
||||
<head>
|
||||
<title>AbsPos Pagination</title>
|
||||
<style type="text/css">
|
||||
html, body, pre { margin: 0; padding: 0; }
|
||||
pre {
|
||||
position: absolute;
|
||||
margin-top: 0.3in;
|
||||
padding-top: 0.3in;
|
||||
top: 0.4in;
|
||||
line-height: 1;
|
||||
font-size: 0.25in;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<pre>1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24</pre>
|
||||
</body>
|
||||
</html>
|
Загрузка…
Ссылка в новой задаче