Open Bug 588288 Opened 14 years ago Updated 2 years ago

Firefox truncates printed output at medicare.gov page with overflow:hidden style on a div

Categories

(Core :: Printing: Output, defect)

defect

Tracking

()

People

(Reporter: stephen.moehle, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:2.0b5pre) Gecko/20100817 Firefox/4.0b5pre
Build Identifier: Mozilla/5.0 (X11; Linux x86_64; rv:2.0b5pre) Gecko/20100817 Firefox/4.0b5pre

Firefox prints only the first page and the tail end of the last page of a nursing home detail page at medicare.gov.

At the given URL, enter information to get a list of nursing homes. Click on the name of a nursing home to go to the detail page for that institution. On the detail page, click on "Print this Page" (upper left hand corner). The resulting page is about 7 paper pages worth of information. At least, that is what IE uses to print the whole thing.

Firefox will print the first page one one sheet of paper and the last line of page on a second sheet and nothing in between.

Print Preview behaves the same as actually printing.

Firefox 3.6.8 on Windows 7 exhibits the exact same behavior.

Reproducible: Always

Steps to Reproduce:
1. Go to URL.
2. Select a list of nursing homes (by zip code, for instance)
3. Click on the name of a nursing home to go to a detail page.
4. Click on "Print this Page" in upper left hand corner.
5. Print the resulting page.
Actual Results:  
Firefox prints 2 pages, and the second page consists solely of a single line of text. IE prints 7 pages.

Expected Results:  
Firefox prints 7 pages.
Version: unspecified → Trunk
Component: Printing → Printing: Output
Product: Toolkit → Core
QA Contact: printing → printing
I was able to reproduce this problem with Firefox 7.0 on a MacBookPro
running Mac OS X 10.5.8 (9L31a).  The page printed properly with Safari.

Another example is this one:

Go to http://www.green960.com/pages/lineup.html

Click on the first "Print article", just under "listen live". When the Print dialogue pops up, select Preview. The first page shown is almost all blank, the second page shows the last two programs.

Now do the same in Safari. (You'll have to select "Open PDF in Preview" from the PDF menu.) The first page shows the first five shows, and the second page shows the next three.

(The second "Print article", the one just above "Weekend Programs", works fine.)
I can also reproduce using the STR from comment 0.  Confirming.
Mozilla/5.0 (X11; Linux x86_64; rv:10.0a1) Gecko/20111006 Firefox/10.0a1

@Steve Chessin: it'd be great if you could file another bug on your green960 issue.  (I can confirm that bug, too, btw)  There are many reasons why websites may end up printing with blank/missing pages, so it's safest to use different bugs for printing issues on different sites. (unless/until it's been determined that it is in fact the same thing going on at both sites, at which point we can mark duplicates as appropriate)
Status: UNCONFIRMED → NEW
Ever confirmed: true
(setting platform to All/All per beginning of comment 1)
OS: Linux → All
Hardware: x86_64 → All
Faster STR:
 - Load this URL:
http://www.medicare.gov/NHCompare/include/datasection/resultssummary/onehome_allresults.asp?zipcode=94040&Type=ZIPCODE&Language=English&dest=NAV|Home|Search|OneHomeAllResults|Home%20Page~Step1B~HomeSelect&OneHomeNHC=05A364|VILLA+SIENA&SortField=
 - Click "Print this Page" link in upper-right
 - Cancel resulting print dialog; File |  Print Preview on the resulting page.

This gives me 5 pages in Print Preview; the first page has content, the second has just a single line of text ("Data Last Updated:"), and the rest are blank.

The problem appears to be due to the style "overflow: hidden" on the div with ID "content-wrap":
> <div id="content-wrap" style="overflow:hidden;_height:1%">

If I remove the "overflow:hidden" from its style attribute in DOM inspector, the bug goes away.
Summary: Firefox prints only part of the page → Firefox truncates printed output at medicare.gov page with overflow:hidden style on a div
See also bug 686928 (another overflow:hidden-dependent printing truncationbug).
(In reply to Daniel Holbert [:dholbert] from comment #2)
> @Steve Chessin: it'd be great if you could file another bug on your green960
> issue.  (I can confirm that bug, too, btw)  There are many reasons why
> websites may end up printing with blank/missing pages

(Just to confirm that this is likely a different bug -- I don't see any overflow:hidden content, after a brief DOM-Inspector inspection of the green960 printed page, so I'm pretty sure something else is going on there)
(In reply to Daniel Holbert [:dholbert] from comment #2)

> @Steve Chessin: it'd be great if you could file another bug on your green960
> issue.  (I can confirm that bug, too, btw)  There are many reasons why
> websites may end up printing with blank/missing pages, so it's safest to use
> different bugs for printing issues on different sites. (unless/until it's
> been determined that it is in fact the same thing going on at both sites, at
> which point we can mark duplicates as appropriate)

Done.  Bug is 692711 and URL is
https://bugzilla.mozilla.org/show_bug.cgi?id=692711

I am unsure if the content has changed, but using a Firefox 83.0 and this URL:
https://www.medicare.gov/care-compare/results?searchType=NursingHome&page=1&city=Siena&state=NY&radius=10&sort=closest
I cannot reproduce this anymore.
https://bugzilla.mozilla.org/show_bug.cgi?id=823464 seems fixed, this might be the case here as well.

But see https://bugzilla.mozilla.org/show_bug.cgi?id=1685455 , it seems like a new variation.

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.