[Layout] A4 portrait width in print preview is too low
Categories
(Core :: Print Preview, defect)
Tracking
()
People
(Reporter: laszlo, Unassigned)
Details
Attachments
(1 file)
1.37 KB,
text/html
|
Details |
Comment 10•8 years ago
|
||
Reporter | ||
Comment 11•8 years ago
|
||
Comment 12•8 years ago
|
||
Reporter | ||
Comment 13•8 years ago
|
||
Reporter | ||
Comment 14•8 years ago
|
||
Comment 16•7 years ago
|
||
Updated•7 years ago
|
Updated•7 years ago
|
Comment 17•4 years ago
|
||
Still broken in 80.0.1, and not limited to A4
(preview does not appear to "know" about the actual paper size, using "Microsoft Print to PDF" with "Letter" format also results in broken output).
Does not work with 100% Viewport-percentage lengths (https://developer.mozilla.org/en-US/docs/Web/CSS/length) either, nor with 5 mm margins on A4 at 100% without "shrink to fit".
Test case:
<!doctype html>
<html lang="en">
<head>
<meta charset=UTF-8>
<title>test</title>
<style>
html, body, #test{
margin:0;
padding:0;
}
body{
height: 100vh;
width: 100vw;
/*297-2*5*/
/* height: 287mm; */
/*210-2*5*/
/* width: 200mm; */
}
* {box-sizing: border-box;
}
#test{
height: 100%;
width: 100%;
border: 1px solid red;
background: gray;
}
</style>
</head>
<body>
<div id="test"></div>
</body>
</html>
Same effect with #test
set to 100v*
and body
untouched.
Comment 18•4 years ago
|
||
(In reply to bugzilla from comment #17)
also concerns "Printing:output". There are a lot of reports already, e.g. https://bugzilla.mozilla.org/show_bug.cgi?id=1627503 and https://bugzilla.mozilla.org/show_bug.cgi?id=1625321 so this is likely a duplicate.
Comment 19•4 years ago
|
||
(In reply to bugzilla from comment #18)
Viewport units should be fixed in 81 fwiw, that's bug 1414600.
Comment 20•4 years ago
|
||
(In reply to Emilio Cobos Álvarez (:emilio) from comment #19)
(In reply to bugzilla from comment #18)
Viewport units should be fixed in 81 fwiw, that's bug 1414600.
Thanks for letting me know. Indeed it looks much better in 81.0b8 (Windows 10, Upgrade requires manual reset of printer.print_* settings in about:config).
Except:
- screen: no red line at the bottom
- print: headers/footers cannot be disabled via dialog (manually via keys print.print_footerleft/right and print.print_headerleft/right)
- print: shrink-to-fit (default) not synchronized between page setup and print preview
- print: Windows OS "Print" dialog shows up on secondary screen above Firefox on primary screen
- print, Page Setup: setting margins (to "5") breaks preview and output
:-)
Comment 21•4 years ago
|
||
(In reply to bugzilla from comment #20)
(In reply to Emilio Cobos Álvarez (:emilio) from comment #19)
(In reply to bugzilla from comment #18)
Viewport units should be fixed in 81 fwiw, that's bug 1414600.Thanks for letting me know. Indeed it looks much better in 81.0b8 (Windows 10, Upgrade requires manual reset of printer.print_* settings in about:config).
Except:
- screen: no red line at the bottom
Can't repro that (on nightly at least).
- print: headers/footers cannot be disabled via dialog (manually via keys print.print_footerleft/right and print.print_headerleft/right)
- print: shrink-to-fit (default) not synchronized between page setup and print preview
- print: Windows OS "Print" dialog shows up on secondary screen above Firefox on primary screen
- print, Page Setup: setting margins (to "5") breaks preview and output
Which OS is that on? Windows? I thing most of that stuff should be fixed with print.tab_modal.enabled
, but not 100% sure.
Anyhow those issues should be each on its own bug, probably.
Comment 22•4 years ago
|
||
(In reply to Emilio Cobos Álvarez (:emilio) from comment #21)
Yes, FF beta 64 bit on Windows 10.
I'll try a nightly build soon.
If I still encounter the aforementioned issues, I'll address them individually.
Updated•2 years ago
|
Description
•