Incorrect printing of a two-page-high flexbox with "justify-content: space-between"

UNCONFIRMED
Unassigned

Status

()

Core
Printing: Output
UNCONFIRMED
2 years ago
2 years ago

People

(Reporter: James Dietrich, Unassigned)

Tracking

({testcase})

45 Branch
testcase
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(3 attachments)

(Reporter)

Description

2 years ago
Created attachment 8745558 [details]
reduced testcase

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0
Build ID: 20160413013228

Steps to reproduce:

Steps to reproduce:
1. Open the attached file d.html in Firefox.
2. Then click Print Preview.

The file d.html contains a flexbox container div with a height of 18in. The flex-direction is "column" and justify-content is "space-between". This flex container contains two child/item divs.


Actual results:

Actual results:
In the browser window, the first child/item div appears at the top of the page, and the second child/item div appears way down at the bottom of the page. This is as expected.

In the Print Preview (Letter size paper, default margins), the container div extends nearly to the bottom of the second page, as can be seen by its 1-pixel green left border. And the first child/item div appears at the top of the container div. This is as expected. The second child/item div appears at the bottom of the first page.


Expected results:

Expected results:
The second child/item div should appear at the bottom of the container div, near the bottom of the second page, rather than appearing roughly in the middle of the container div at the bottom of the first page.

Viewing Print Preview in Chrome version 50 shows the second child/item div at the bottom of the container div near the bottom of the second page.

I will attach two PDF files, one showing the output produced by Firefox, and one showing the output produced by Chrome.

Please let me know if any further information would be helpful.

Thank you!
James Dietrich
(Reporter)

Comment 1

2 years ago
Created attachment 8745560 [details]
d_Firefox.pdf

PDF produced by Firefox
(Reporter)

Comment 2

2 years ago
Created attachment 8745562 [details]
d_Chrome.pdf

PDF produced by Chrome
(Reporter)

Updated

2 years ago
Attachment #8745560 - Attachment mime type: application/x-unknown → application/pdf
(Reporter)

Updated

2 years ago
Attachment #8745562 - Attachment mime type: application/x-unknown → application/pdf

Updated

2 years ago
Component: Untriaged → Printing: Output
Keywords: testcase
Product: Firefox → Core
You need to log in before you can comment on or make changes to this bug.