Closed Bug 118940 Opened 24 years ago Closed 23 years ago

Absolutely positioned DIV elements inside relatively positioned DIV element generate spurious layout

Categories

(Core :: Layout: Tables, defect, P3)

x86
Linux
defect

Tracking

()

RESOLVED DUPLICATE of bug 74094
mozilla1.2alpha

People

(Reporter: vigna, Assigned: karnaze)

References

Details

Attachments

(1 file, 1 obsolete file)

In the included test case (next comment), some DIV elements generated by JS code have absolute position. However, they are not taken out of the flow. If you eliminate the relative positioning for the DIV element with ID=rightlinks, they are again taken out of the flow. Discussing bug #117501 it turned out that the relative positioning of that DIV element is necessary to set it as the containing element (for it is the first ancestor with non-static positioning). Since offset* properties are relative to the first containing element, this is necessary if one wants to use offset* information to do absolute positioning.
Attached file Test case (obsolete) —
Attachment #64120 - Attachment mime type: application/octet-stream → application/x-gzip
Attached file Minimal testcase
Attachment #64120 - Attachment is obsolete: true
Looks like the table cell is mis-sizing itself... over to HTML tables. Oh, and same thing happens in strict mode, by the way.
Assignee: attinasi → karnaze
Status: UNCONFIRMED → NEW
Component: Layout → HTMLTables
Ever confirmed: true
QA Contact: petersen → amar
Target Milestone: --- → mozilla1.2
Priority: -- → P3
*** Bug 163495 has been marked as a duplicate of this bug. ***
Is this a duplicate of bug 46983?
No. But likely related.
Depends on: 172896
Fixed by checkin of bug 172896. *** This bug has been marked as a duplicate of 74094 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: