Closed
Bug 423397
Opened 16 years ago
Closed 16 years ago
Wrong size on IFRAME if position is fixed or absolute and you define values for top and bottom or left and right
Categories
(Core :: Layout: Positioned, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: daniel.andefors, Unassigned)
Details
(Keywords: testcase)
Attachments
(1 file)
440 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b5pre) Gecko/2008031605 Minefield/3.0b5pre Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b5pre) Gecko/2008031605 Minefield/3.0b5pre An IFRAME with fixed or absolute position where you've defined values for top and bottom or left and right or all of these will not be sized correctly. Reproducible: Always Steps to Reproduce: 1. Create an HTML page with an IFRAME. 2. Using CSS, set position to fixed or absolute on the IFRAME. 3. Using CSS, set top and bottom, left and right or all on the IFRAME. Actual Results: The height or width of an IFRAME with fixed or absolute position is not derived from top and bottom or left and right respectively. What happens is that if you define values for top and bottom the value for bottom is ignored and it seems that the IFRAME gets some default height. Similarly, if you define values for left and right the value for right is ignored. Expected Results: The height of an IFRAME with fixed or absolute position should be derived from top and bottom. The width should be derived from left and right.
Reporter | ||
Comment 1•16 years ago
|
||
Updated•16 years ago
|
Attachment #309898 -
Attachment mime type: text/plain → text/html
Comment 2•16 years ago
|
||
Unlike a div the iframe is a replaced element. So you have to set the width explicitly. Firefox 2 was incorrect with handling this according to CSS 2.1. See Bug 412679.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•