Created attachment 18905 [details] [review] Bug 10451 - Firefox prints only first page of table with shrink to fit option According to Firefox bug tracker, versions up to 21 doesn't print tables correctly when using shrink to fit option. See: https://bugzilla.mozilla.org/show_bug.cgi?id=684622 However, even with v21 or newer, we still need to add css to print media which instruct it not to break table tag to print all pages of table. This has a side-effect that table starts always on next page, wasting some space on first printed page.
Dobrica, since this causes wasted space, would it be better to make this css affect only firefox like this? @-moz-document url-prefix() { table { /* tries to fix firefox 21+ shrink-to-fit */ page-break-inside: avoid; } }
Kyle, thanks for suggestion. If would be better to affect just Firefox, I will re-submit patch with your fix.
Created attachment 19007 [details] [review] Bug 10451 - Firefox prints only first page of table with shrink to fit option According to Firefox bug tracker, versions up to 21 doesn't print tables correctly when using shrink to fit option. See: https://bugzilla.mozilla.org/show_bug.cgi?id=684622 However, even with v21 or newer, we still need to add css to print media which instruct it not to break table tag to print all pages of table. This has a side-effect that table starts always on next page, wasting some space on first printed page (but only in Firefox since CSS selector is specific to it).
Do we need to test this?
Patch applied cleanly, go forth and signoff
Can we have a test plan? A page with a table we should look at to see it before and after?
Created attachment 24049 [details] [review] Bug 10451 - Firefox prints only first page of table with shrink to fit option According to Firefox bug tracker, versions up to 21 doesn't print tables correctly when using shrink to fit option. See: https://bugzilla.mozilla.org/show_bug.cgi?id=684622 However, even with v21 or newer, we still need to add css to print media which instruct it not to break table tag to print all pages of table. This has a side-effect that table starts always on next page, wasting some space on first printed page (but only in Firefox since CSS selector is specific to it). Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
I tried this with Firefox 26 in Ubuntu for a result page in staff and a very full cart. Without the patch, the pages prints nicely. With the patch, we have the navigation on the first page and the rest on the second. This is quite a regression in newer Firefox versions. I hesitate to pass QA on this.
Two years later is this still an issue? It isn't in my tests.
i figured i should chime in here because i have been having this problem for years. The only time i try to print something in Firefox is when Google Chrome won't print my class schedule and i think the problems are related. In Chrome, Safari, and Opera the printout and print preview is all goofy looking. It has shrunken frames and visible scrollbars and is unusable. And it is like this on every computer i try it on. So i always try to do it in Firefox, but i always get this problem where Firefox will only print the first page! Whatever HTML my school's website is using for displaying both regular class schedule and a "printable" version of the class schedule isn't rendering properly for these browsers. And i have to say it is SUPER annoying. I end up just printing screenshots.