Closed
Bug 428344
Opened 17 years ago
Closed 17 years ago
Problem with iframe and object absolute positioning and resizing
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 412679
People
(Reporter: d4nerd, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9b4) Gecko/2008030318 Firefox/3.0b5pre
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9b4) Gecko/2008030318 Firefox/3.0b5pre
While resizing any other element by positioning it absolutely and using left, right, top and bottom as limits (for example left: 10px; right: 10px; will make div stretch from left to right with 10px margin), it doesn't work with iframe (and object) - element keeps it's default size (300x150)
Reproducible: Always
Steps to Reproduce:
1. Create a new file
2. Insert iframe or object, position: absolute and with left, right, top and bottom defined
3. See what happens
4. Change it to div
5. See what happens
Actual Results:
Iframe has size 300px x 150px
Expected Results:
Iframe should have 60% x 60% of body width and height
This bug is also present in Opera 9.5 and IE>=7 (Opera also has some problems with div), but specification doesn't say anything about limiting iframe ability to stretch.
Also Firefox3b4 treats iframe as block object (that's what Firebug says), and it should be inline. However using display: block !important; doesn't fix the bug.
Bug is not present in Firefox 2.0
Version: unspecified → Trunk
Comment 2•17 years ago
|
||
This is by design. iframe is a replaced element. See bug 412679 for all the details.
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
•