Closed Bug 1814057 Opened 2 years ago Closed 1 year ago

Text not correctly displayed on print preview nor on saved pdf.

Categories

(Core :: Layout: Flexbox, defect)

Firefox 110
Desktop
All
defect

Tracking

()

RESOLVED DUPLICATE of bug 1744363
Webcompat Priority P3
Tracking Status
firefox-esr102 --- affected
firefox109 --- wontfix
firefox110 --- wontfix
firefox111 --- wontfix
firefox112 --- wontfix

People

(Reporter: mchiorean, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: regression)

Attachments

(1 file)

Attached image Screenshot

Found in

  • 110.0b7 beta (20230129190147)

Affected versions

  • 110.0b7 beta (20230129190147)
  • 111.0a1 (20230130095434)

Tested platforms

  • Affected platforms: Win7, Win10
  • Unaffected platforms: will update

Steps to reproduce

  1. Open the following link (http://salesreceiptstore.com/fake-receipt-templates/).
  2. Select Ctrl+P to print preview the page.
  3. Select to Save the PDF.

Expected result

  • Text should be correctly displayed on print preview.

Actual result

  • Text overlaps on print preview and on pdf (see attached screenshot).

Regression range

  • Will look for one.

Additional notes

  • Issue does not reproduce on Chrome.
Severity: -- → S3
Has STR: --- → yes

Good build: Layout seems wrong(Boxes are side by side.), but texts do not overlap.
Bad build: Texts overlap.

Regression window:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=bbc6744b3ca2f9b902c30bbb8c99965563421c5b&tochange=18dbcec715c7f176ef13c30579efd5603148c4de

Triggered by Bug 1414600.

Regressed by: 1414600

Set release status flags based on info from the regressing bug 1414600

:emilio, since you are the author of the regressor, bug 1414600, could you take a look?

For more information, please visit auto_nag documentation.

Flags: needinfo?(emilio)
Keywords: regression
Webcompat Priority: --- → ?

Yeah, this is a print issue, but my change is correct, not really a regression. It just so happens that without it we don't hit the relevant media query breakpoints.

This is a flex fragmentation issue. I don't see this if I change:

.panel-grid.panel-has-style > .panel-row-style, .panel-grid.panel-no-style

From display: flex to display: block. I'll try to reduce it a bit, but moving to the right component for now.

Component: Print Preview → Layout: Flexbox
Flags: needinfo?(emilio)

Set release status flags based on info from the regressing bug 1414600

Webcompat Priority: ? → P3

Emilio is right. This is a flex fragmentation issue.

The first image (the picture with five "LOGO" receipts) happens to be at the end of first page, but there is insufficient space for it, so we will move it to the top of the second page. However, this can cause the flex item ancestor to become taller, but our current flex fragmentation code is not capable of adjusting the position of other items. The evidence is that if you shrink the printing scale to make the first image fit in the first page (on my system scale <= 90% will do), there is no content overlap.

Blocks: 939897

Clear Regressed by.

No longer regressed by: 1414600

The testcase in comment 0 looks good in print-preview in Nightly 122.0a1 (2023-12-06) after bug 1744363 is fixed. There is no content overlapping.

Status: NEW → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1744363
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: