Fieldsets are truncated to one page when printed / print-previewed
Categories
(Core :: Printing: Output, defect, P3)
Tracking
()
People
(Reporter: nlh, Assigned: MatsPalmgren_bugz)
References
(Blocks 2 open bugs, )
Details
(4 keywords, Whiteboard: Please read comments #27 and #31 before commenting [layout:print-triage:p1], [wptsync upstream][frag2020_v72])
Attachments
(6 files, 1 obsolete file)
Comment 1•16 years ago
|
||
Comment 2•16 years ago
|
||
Comment 4•15 years ago
|
||
Updated•15 years ago
|
Comment 5•15 years ago
|
||
Comment 6•15 years ago
|
||
Comment 7•15 years ago
|
||
Comment 8•15 years ago
|
||
Comment 9•15 years ago
|
||
Comment 10•15 years ago
|
||
Comment 11•15 years ago
|
||
Comment 12•15 years ago
|
||
Comment 13•15 years ago
|
||
Comment 14•15 years ago
|
||
Comment 16•15 years ago
|
||
Updated•15 years ago
|
Updated•15 years ago
|
Updated•15 years ago
|
Comment 18•15 years ago
|
||
Comment 19•15 years ago
|
||
Comment 20•15 years ago
|
||
Updated•15 years ago
|
Comment 21•15 years ago
|
||
Comment 22•15 years ago
|
||
Comment 23•15 years ago
|
||
Comment 24•15 years ago
|
||
Comment 25•15 years ago
|
||
Comment 26•15 years ago
|
||
Updated•15 years ago
|
Comment 28•15 years ago
|
||
Updated•15 years ago
|
Comment 29•14 years ago
|
||
Comment 30•14 years ago
|
||
Comment 32•14 years ago
|
||
Comment 33•14 years ago
|
||
Comment 36•14 years ago
|
||
Comment 37•14 years ago
|
||
Comment 38•14 years ago
|
||
Comment 39•14 years ago
|
||
Updated•14 years ago
|
Comment 41•14 years ago
|
||
Comment 42•14 years ago
|
||
Comment 43•13 years ago
|
||
Updated•12 years ago
|
Comment 45•12 years ago
|
||
Comment 46•11 years ago
|
||
Comment 47•11 years ago
|
||
Comment 48•11 years ago
|
||
Comment 49•11 years ago
|
||
Comment 50•11 years ago
|
||
Comment 52•9 years ago
|
||
Comment 53•9 years ago
|
||
Updated•8 years ago
|
Comment 54•8 years ago
|
||
Updated•8 years ago
|
Comment 55•8 years ago
|
||
Comment 56•8 years ago
|
||
Updated•8 years ago
|
Updated•8 years ago
|
Comment 57•8 years ago
|
||
Comment 58•8 years ago
|
||
Comment 59•7 years ago
|
||
Updated•7 years ago
|
Comment 60•7 years ago
|
||
Updated•7 years ago
|
Comment 61•5 years ago
|
||
Still an issue 11 years later with v67.0.2. For now, I'm using this workaround, but it's less than ideal.
<script type="text/javascript">
if (navigator.userAgent.toLowerCase().indexOf('firefox') > -1) {
$(window).bind("beforeprint", function () {
$("fieldset").each(
function () {
$(this).replaceWith($('<div class="fieldset">' + this.innerHTML + '</div>'));
}
);
});
$(window).bind("afterprint", function () {
$(".fieldset").each(
function () {
$(this).replaceWith($('<fieldset>' + this.innerHTML + '</fieldset>'));
}
);
});
}
</script>
Comment 62•5 years ago
|
||
Would love to see this fixed. Is there a way to fix this in CSS? Overriding some default behaviors in a print style sheet?
Updated•5 years ago
|
Assignee | ||
Comment 63•5 years ago
|
||
I can take a look at this...
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 64•5 years ago
|
||
Assignee | ||
Comment 65•5 years ago
|
||
Assignee | ||
Comment 66•5 years ago
|
||
Comment 67•5 years ago
|
||
Comment 70•5 years ago
|
||
Backed out changeset 0186165ee1d8 (Bug 471015) for reftest failures at box-shadow/611574-1.html.
https://hg.mozilla.org/integration/autoland/rev/d639574e500e0cfea377b3d294a1998c69ed5cff
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=278053629&repo=autoland&lineNumber=23870
Assignee | ||
Comment 72•5 years ago
|
||
The test that failed (layout/reftests/box-shadow/611574-1.html) depends on <fieldset>
not being able to fragment.
I'll fix the test and reland...
Comment 73•5 years ago
|
||
Comment 76•5 years ago
|
||
bugherder |
Updated•5 years ago
|
Comment 78•5 years ago
|
||
Mats,
Semi-reduced self-explanatory test:
http://www.gtalbot.org/BugzillaSection/Bug471015-fieldset-truncated-print.html
Make sure you choose paper size: A4 (210mm wide by 297mm tall) and orientation:
Portrait when you try the test. Paper size A4 is best since it is selectable and supported in both Firefox and Chrome.
With Firefox 73.0a1 buildID=20191206093947, I get 3 pages with "PASS" appearing in the 3rd page. With Chromium 78.0.3904.108, I get 2 pages with "PASS" appearing in the 2nd page. The difference is that Firefox generates a page break in the first page for unknown and unexpected reason. I would expect Firefox to start rendering the fieldset on the first page and not after a page break.
Should I create another bug report?
Assignee | ||
Comment 79•5 years ago
|
||
It passes for me if I remove one line of text from the <h3>
, but yeah it looks like there should already be room to start the fieldset on first page. Please file a new bug.
Comment 80•5 years ago
|
||
Done: bug 1602107
Updated•5 years ago
|
Updated•5 years ago
|
Description
•