Closed Bug 195334 Opened 22 years ago Closed 22 years ago

iframes in tables in FORMs using percent height are shown with zero height

Categories

(Core :: Layout: Images, Video, and HTML Frames, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 166630

People

(Reporter: dominic, Unassigned)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1) Gecko/20021130 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1) Gecko/20021130 An iframe in a table with height 100% shows correctly, taking up 100%. As soon as you put the table in form tags, the iframe has zero height. here is a html file (taken from the mozilla site) to show the problem: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"><html><head><title>Iframe in table in form problem</title> </head> <body> <P> &lt;table width="100%" height="100%"&gt;<br> &lt;tr&gt;&lt;td height="100%"&gt;<br> &lt;iframe src="about:blank" height="33%"&gt;This IFRAME is NOT in a table, in a <u>form</u>.Please note the height is using percent.&lt;/iframe&gt; <br> &lt;/td&gt;&lt;/tr&gt;<br> &lt;/table&gt;<br> </p> <table width="100%" height="50%"> <tr><td height="100%"> <iframe src="about:blank" height="33%">This IFRAME is NOT in a table, in a <u>form</u>.Please note the height is using percent.</iframe> </td></tr> </table> &lt;form&gt;<br> &lt;table width="100%" height="100%"&gt;<br> &lt;tr&gt;&lt;td height="100%"&gt;<br> &lt;iframe src="about:blank" height="33%"&gt;This IFRAME IS in a table, in a <u>form</u>.Please note the height is using percent.&lt;/iframe&gt; <br> &lt;/td&gt;&lt;/tr&gt;<br> &lt;/table&gt;<br> &lt;/form&gt;<br> <form> <table width="100%" height="50%"> <tr><td height="100%"> <iframe src="about:blank" height="33%">This IFRAME IS in a table, in a <u>form</u>.Please note the height is using percent.</iframe> </td></tr> </table> </form> </body></html> Reproducible: Always Steps to Reproduce: Please use the example html provided Actual Results: The iframe is shown with no height when put within a form Expected Results: rendered the iframe exactly the same as when the form tags aren't there.
->Frames
Assignee: form → frame
Component: Layout: Form Controls → Layout: HTML Frames
QA Contact: desale → madhur
*** This bug has been marked as a duplicate of 166630 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Product: Core → Core Graveyard
Component: Layout: HTML Frames → Layout: Images
Product: Core Graveyard → Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: