Open Bug 263492 Opened 20 years ago Updated 2 years ago

Computed size is incorrect if inside column

Categories

(Core :: Layout, defect)

x86
Windows XP
defect

Tracking

()

People

(Reporter: erik, Unassigned)

Details

Using the test case for bug 251162 https://bugzilla.mozilla.org/attachment.cgi?id=161483&action=view and then resize the window so that the second paragraph is cut into the 2 columns. Once that is done open up DOM inspector and look at the computed CSS for width and height (as well as offsetWidth, offsetHeight, offsetLeft, offsetTop, clientWidth, clientHeight). The size and position seems to report the first part of the paragraph frame when it should return the union of the frames (just like what is happening for inline frames that wrap rows).
Blocks: 239192
I'm not at all sure what the computed CSS styles should be here. The DOM properties should be working based on work that we've already done. I'll take a look when I get a chance.
The only thing governing computed style behavior is backwards compat, at this point (or the CSS2.1 spec, but then computed width will really be computed width, and not what we return now). So I don't think we should change the computed style behavior. Note that computed style for inlines doesn't do at all the same thing that offset*/client* do. I agree that the DOM props should Just Work; I'm not sure what's up there.
No longer blocks: 239192
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.