Closed
Bug 405727
Opened 17 years ago
Closed 17 years ago
iframe default use only background color from container html page but not foreground color
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 154957
People
(Reporter: jf128, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9 if you don't specify any color for the page in iframe, it will use the body background color from the page contains the iframe, but not the foreground color. For example, <body bgcolor="000000" text="FFFFFF">... <iframe ....>... </body> iframe will take bgcolor as "000000", but not use text color as "FFFFFF", it seems use system default text color which may not be a good color setting for the container's background color. It should either take both foreground and background setting from container page or not take take any of them at all. This is also true when the color is set using css, iframe only use background color set by css, not foreground. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Comment 1•17 years ago
|
||
Almost, but not quite: the CSS spec says the default background color for root elements (which includes iframe) is transparent, while the default color for root elements is whatever the browser uses for a default color. Nothing's inherited into the iframe, background or foreground, it's just transparent so you're seeing the background color from the page below it.
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•