Closed Bug 268806 Opened 20 years ago Closed 20 years ago

DOC TYPE page header inhibits IFRAME functionality

Categories

(Firefox :: General, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: tech, Assigned: bugzilla)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

If I have a DOC TYPE (as required by the HTML 4.0+ standard) header on my web
page then Firefox fails to correctly display IFRAME's set with with
height="100%". If I remove the DOC TYPE the IFRAME height is correctly rendered.
Since the DOCTYPE is a part of the HTML 4.0 standard it should not inhibit other
portions of the HTML 4.0 standard, e.g. IFRAMEs. 


Reproducible: Always
Steps to Reproduce:
1. Set DOC TYPE as either loose or strict HTML 4.0
2. Insert an IFRAME with height="100%" and content  that is at several 100
pixels high.
3. Load the page in Firefox. Scroll bar will appear but frame will not be full
height.

Actual Results:  
My content appears but it does not expand to the height of the content rather
seems to limit itself to ~ 100 pixels in height (guess estimate) with a scroll
bar on the IFRAME. If I remove the DOCTYPE header the full IFRAME displays at
the height of its content.

Expected Results:  
The IFRAME should be 100% the height of its content.
Well, not exactly. If you have a DOCTYPE that triggers Quirks Mode, then you get
the same behavior you get without a DOCTYPE. It's only if you use a DOCTYPE that
triggers Standards Mode that gives you the (correct according to the CSS
standards) "100% height when the parent's height is auto means auto" behavior.
See  http://www.mozilla.org/docs/web-developer/quirks/ and the linked pages for
more on quirks vs. standards.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.