Firefox doesn't print properly this file
Categories
(Core :: Printing: Output, task)
Tracking
()
People
(Reporter: julienw, Unassigned)
Details
Attachments
(2 files)
STR:
- open the attachment.
- try to print it.
Note the print preview is quite close to what I get when I print it.
The main problem is that the file is cut on the right.
Also the Print Preview has issues when changing the layout from landscape to portrait and back, as the filename is displayed in the middle in a blurry way. (it doesn't get printed like that though).
This works fine in Chrome.
Comment 1•6 years ago
•
|
||
Note that the page includes this CSS:
@media print {
@page {
margin: 0.5cm;
/* size: A4 landscape; */
max-height:100%;
max-width:100%
}
.page {
-webkit-transform: rotate(-90deg);
-moz-transform: rotate(-90deg);
left: -25%;
position: absolute;
top:21%;
}
}
/* firefox */
@-moz-document url-prefix() {
.page {
top: 200px;
left: -20%;
}
}
Julien, do you get "expected results" if you set about:config pref layout.css.moz-document.content.enabled
to true? (It defaults to false in Nightly, which means Nightly doesn't get the firefox-specific CSS at the bottom., which we apparently need It's enabled in Firefox release, though, until bug 1449753 is resolved some day.)
Reporter | ||
Comment 2•6 years ago
|
||
Ah, this is much better!
The result is not 100% the same as in Chrome, but this works good enough.
I tried changing this -20%
to other values, and -15%
works a bit better. I can try to tell the website owner about that.
I still have this weird thing where the file name comes blurry after changing some layout, but only in the preview. I'll attach a screenshot about that.
Reporter | ||
Comment 3•6 years ago
|
||
Updated•2 years ago
|
Description
•