Printing iFrames fails to load iframes hidden in divs when CSS @media print says to display them

RESOLVED INCOMPLETE

Status

()

RESOLVED INCOMPLETE
11 years ago
8 years ago

People

(Reporter: jasonmcintosh, Unassigned)

Tracking

1.8 Branch
x86
Windows XP
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [closeme 2011-03-15])

(Reporter)

Description

11 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.7) Gecko/20070914 Firefox/2.0.0.7
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.7) Gecko/20070914 Firefox/2.0.0.7

Load the below HTML to see an example.  Printing (preview or regular) fails to show the iframe that is set to hidden, even though it's set in the @media print section to be displayed.  The iframe is shown on the printout, the contents aren't loaded however.  Internet Explorer does work properly with these tags.  We've not tested on Linux or other platforms.

<HTML>
<head>
<style type="text/css">
@media screen {
	.active {
		visibility:visible;
		display:block;
	}

	.inactive {
		overflow:none;
		display:none;
		visibility:none;
	}

}

@media print {
	.active {
		visibility:visible;
		display:block;
	}

	.inactive {
		overflow:none;
		display:block;
		visibility:visible;
	}
}

</style>
</head>
<BODY>

<div class="inactive">
	Google:
	<iframe src="http://google.com/"></iframe>
</div>
<div class="active">
	<iframe src="http://mozilla.com/"></iframe>
</div>

</body>



Reproducible: Always

Steps to Reproduce:
1.  Load the HTML included in the details section
2.  Print Preview or Print the document
3.  Notice the iframe block that contains nothing.  
4.  Change the @media screen CSS to have the inactive div displayed
5.  Print Preview again
6.  Notice that the iframe contents now shows up
Actual Results:  
The contents of the iFrame are not displayed on the printout

Expected Results:  
The contents of the iFrame should be displayed on the printout considering it's set to display with the @media print css

Tested with Firefox 2.0.0.5, same issues.  SO, printing with iFrames from what I can tell is broken at this point.  No workaround discovered yet.
Component: General → Printing: Output
Product: Firefox → Core
QA Contact: general → printing
Version: unspecified → 1.8 Branch

Comment 1

8 years ago
do you see this issue still with version 3.6 or 4.0 beta?
Whiteboard: [closeme 2011-03-15]
No response to needed information. -> incomplete report
Status: UNCONFIRMED → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.