Open Bug 1580735 Opened 6 years ago Updated 2 years ago

Firefox doesn't print properly this file

Categories

(Core :: Printing: Output, task)

task

Tracking

()

People

(Reporter: julienw, Unassigned)

Details

Attachments

(2 files)

Attached file 004156741.html

STR:

  1. open the attachment.
  2. 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.

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.)

Flags: needinfo?(felash)

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.

Flags: needinfo?(felash)
Attached image screenshot
Severity: normal normal → S3 S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: