Closed Bug 244730 Opened 21 years ago Closed 21 years ago

Position of abs element not recalculated on scripted layout change

Categories

(Core :: Layout: Positioned, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: wasti.redl, Unassigned)

References

()

Details

(Keywords: testcase)

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a1) Gecko/20040520 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a1) Gecko/20040520 The page looks ok initially. After about 2 seconds, JavaScript will set the display of one paragraph to none. This causes the body to shrink. Since its position is relative, the absolutely positioned div "abspos" should be repositioned too, but isn't and remains in the now incorrect position. The bug doesn't occur if the div that wraps the paragraph "thep" is removed. Reproducible: Always Steps to Reproduce: 1. Load page 2. Wait Actual Results: The text "Mispositioned text" stays where it was. Expected Results: The text should have been repositioned to honour the "bottom" CSS rule.
Attached file Testcase
This is the same file as in the reference URL, just in case that one gets lost.
This does not depend on scripting. It can also happen with css (:hover etc). Resizing the window, makes the bug go away. I think this bug is very similar to bug 225429, only there they use position:absolute for the placeholder and here position:relative.
Not quite like bug 175364, but pretty similar issue....
Depends on: 175364
Flipping through several tabs also forces Mozilla to reposition, apparently it doesn't cache all the tabs and reflows.
Keywords: testcase
Fixed by checkin for bug 261064
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: