Closed Bug 444458 Opened 18 years ago Closed 8 years ago

In Print-Preview at some zoom levels, <span> has trailing blank space, or overlaps other text.

Categories

(Core :: Print Preview, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: dholbert, Unassigned)

References

Details

Attachments

(5 files)

Attached file testcase 1
Steps to reproduce: 1. Load testcase 2. Zoom in (Ctrl+mousewheel) ACTUAL RESULTS: At some zoom levels, the span either has blank space after it, or overlaps the text following it. Also, for <u>/<del>, the line that's drawn through/below the text is either too short or too long. Basically, it looks like we're not computing the span width correctly. When I just view the page normally (not in print-preview) and I zoom, I don't see the buggy behavior. So, this seems to be a print-preview specific bug.
Flags: wanted1.9.0.x?
Summary: In Print-Preview, <span> has blank space after it or overlaps other text at some zoom levels. → In Print-Preview at some zoom levels, <span> has blank space after it or overlaps other text.
Attachment #328762 - Attachment description: testcase 1: using <span> → testcase 1
Summary: In Print-Preview at some zoom levels, <span> has blank space after it or overlaps other text. → In Print-Preview at some zoom levels, <span> has trailing blank space, or overlaps other text.
Seems to work fine here on windows.
Good to know. I'm guessing it's a cairo issue -- I think cairo-related bugs have caused other similar Linux-only printing issues in the past.
Sorry, never mind, I see it now, I have to zoom in while on print preview.
Oops, that's my fault -- s/"Load testcase"/"Print Preview the testcase"/ in step 1 of the steps-to-reproduce.
OS / Hardware --> all, per comment 5.
OS: Linux → All
Hardware: PC → All
Flags: wanted1.9.1?
Flags: wanted1.9.0.x?
Flags: wanted1.9.0.x+
Flags: blocking1.9.1?
Flags: wanted1.9.1?
Flags: wanted1.9.1+
Flags: blocking1.9.1?
Flags: blocking1.9.1-
Like bug 444448, this bug originated in the 2007110904 nightly, which is when bug 363265 landed and enabled zooming *within* print-preview. Before that bug landed (i.e.in the previous nightly, 2007110804), your browsing zoomlevel would set the print-preview zoomlevel. So, initially I thought I might be able to reproduce this bug in earlier nightlies by zooming and _then_ print-previewing, but that doesn't seem to reproduce it -- it's specifically a problem with zooming *within* print-preview.
Blocks: 363265
Attached file testcase 2
This testcase demonstrates what's going on. The bordered 300px-wide div can be used as a sort of ruler -- on my machine, its right border falls approximately at the division between a's and b's. If you view the testcase normally (not print-previewed), and zoom in and out, you'll see that the split-point between a's and b's moves around a bit at different zoom levels -- sometimes it falls after the div's right border, and sometimes it falls before it. This presumably happens because we're using different fonts, and so the "aaaa..." string changes length slightly. However, notice that we never leave a chunk of blank space between the a's and b's. If you zoom *within print-preview*, you'll see that the length of the "aaa" string changes there as well, indicating that we're switching fonts -- HOWEVER -- in print-preview, the start-point of the "bbbb" string appears to be stuck. It never shifts to accommodate shorter "aaa" strings". This is most noticeable when I've zoomed in 4x. So it looks like in print-preview, we do an initial reflow, at zoomlevel = 100%. Then, as we zoom, we assume that the textruns' start-positions and lengths can be scaled up and down exactly with the zoom-level. However, that assumption doesn't hold, because we change fonts, and that tweaks positioning and length.
Here's a screenshot of testcase 2, at two zoomlevels, in both normal-browser-mode and print-preview-mode, demonstrating the problem.
It doesn't seem to be possible to zoom any more. Can you still repro this, Daniel?
Flags: needinfo?(dholbert)
I cannot repro anymore (i.e. I can confirm that print preview won't let me zoom anymore with ctrl-scrollwheel and ctrl +/-) I also tried adjusting the "Scale" dropdown, which is the closest thing we have to zooming now in print-preview, and that didn't reproduce the bug. So I guess this is WFM.
Status: NEW → RESOLVED
Closed: 8 years ago
Flags: needinfo?(dholbert)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: