toebes.com - Print preview issues
Categories
(Web Compatibility :: Site Reports, defect, P3)
Tracking
(Not tracked)
People
(Reporter: rbucata, Unassigned)
References
(Depends on 1 open bug, )
Details
(Keywords: webcompat:site-report, Whiteboard: [webcompat-source:web-bugs])
User Story
platform:windows,mac,linux,android impact:feature-broken configuration:general affects:all branch:release diagnosis-team:layout
Attachments
(4 files)
Environment:
Operating system: Windows 10
Firefox version: Firefox 128.0
Steps to reproduce:
- Navigate to : https://toebes.com/codebusters/Samples/firefox_toebes_printing_example.html
- Print the page in print preview using the browser feature
- Observe
Expected Behavior:
Printing is rendered as expected
Actual Behavior:
Printing doesn't format correctly
Notes:
- Reproduces regardless of the status of ETP
- Reproduces in Firefox Nightly, and Firefox Release
- Does not reproduce in Chrome
Created from https://github.com/webcompat/web-bugs/issues/139133
Updated•5 months ago
|
Comment 1•3 months ago
|
||
Specific issues called out in the github issue by the original reporter:
- Firefox generates 5 pages instead of the 3 that it should.
- The names of participants table ends up wider than the page.
- The Score table on the first page is off the right hand edge of the page.
- The header for the second page (Page 1) is on a page by itself
- The footer for the second page (Page 1) is near the top of the third page
- The text for the timed question appears too high on the page
- The text for the timed question is in a slightly larger font such that it wraps early.
- Similar problems are on the last page, with the header appearing nominally in the correct place
- The footer for the last page is on a page by itself.
This doesn't exactly match what I'm seeing, though. (I'm not sure if differences in experience are due to the content changing since this was filed, or browser implementations changing since this was filed, or environment differences -- e.g. RE item #7 about particular font choice is likely environment-specific.)
The main Firefox-vs-Chrome difference that I'm seeing is that we generate an extra pagebreak, with page 2 ending up mostly-blank -- we show 2024 Science Olympiad National Codebusters Division B Team Number:_B_________
at the top of that page and that's all, whereas Chrome goes on to show more content below that on the same page.
Comment 2•3 months ago
|
||
Here's a copy of the testcase from the live site ( https://toebes.com/codebusters/Samples/firefox_toebes_printing_example.html ), for archival/reference.
Comment 3•3 months ago
|
||
Comment 4•3 months ago
|
||
Comment 5•3 months ago
•
|
||
Comparing the two PDFs, I'm not noticing anything obviously different aside from subtle font differences (which are expected) and the pagebreak difference on page 2 that I mention at the end of comment 1.
Comment 6•3 months ago
|
||
Comment 7•3 months ago
|
||
As shown in comment 6, WebKit matches Firefox in inserting a pagebreak after just a little content on page 2. I've filed bug 1917145 on that behavior with a reduced testcase. WebKit has one other quirk -- it generates an extra page at the end for the final "Page 2" footer-text, which was what the reporter had mentioned as issue #9 in Firefox, but I didn't actually hit myself in Firefox. That's interesting, but I'm not going to worry about that too much since we're matching the reporter's expectation.
Notably, it looks like the site in question (toebes.com) is presumably operated by the reporter on the github issue (https://github.com/toebes ), so we can probably just directly contact them about bug 1917145 on the webcompat issue and suggest a workaround there, which in this case is probably removing pagebreak
from <div class="question pagebreak">
.
Updated•3 months ago
|
Updated•3 months ago
|
Comment 8•3 months ago
|
||
(In reply to Daniel Holbert [:dholbert] from comment #7)
Notably, it looks like the site in question (toebes.com) is presumably operated by the reporter on the github issue (https://github.com/toebes ), so we can probably just directly contact them about bug 1917145 on the webcompat issue and suggest a workaround there, which in this case is probably removing
pagebreak
from<div class="question pagebreak">
.
(update: success, we're in touch with the reporter/site-author on github. I suggested several ideas for workarounds there.)
Description
•