Closed Bug 428075 Opened 16 years ago Closed 16 years ago

Surrounding div height has become higher, while object reports wrong offsetHeight value

Categories

(Core :: Layout, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: martijn.martijn, Unassigned)

Details

(Keywords: regression, testcase)

Attachments

(1 file)

Attached file testcase
See testcase.

I would expect for the object and div offsetHeight values to be 111px.
Not the 9px for the object and 116px for the div value, I now get.

This regressed between 2005-09-21 and 2005-09-23, so I think a regression from bug 1156.
Version: unspecified → Trunk
Isn't this just a consequence of the <object> becoming a regular inline frame?  That would certainly lead to the behavior you see, and is what we want to be doing here, imo.
The <object> has a green border. With the testcase that green bordered box has clearly a height larger than 19px. offsetHeight and getBoundingClientRect.height should return the height of that green bordered box, no?
It has a green outline.  Outlines are drawn around the boundaries of the overflow area.  If you put a border on the node, you'll see that the offsetHeight returns the height of the border box correctly.
Yeah, sorry, you're right. This is invalid.
No longer blocks: 1156
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → INVALID
Ok, I guess I'm basically complaining about the fact that offsetHeight for an inline frame doesn't account for larger elements that might be wrapped in there.
But there are known bugs about those.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: