Closed Bug 111849 Opened 23 years ago Closed 23 years ago

a fixed block should become container to any children appended through DOM

Categories

(Core :: CSS Parsing and Computation, defect, P2)

defect

Tracking

()

VERIFIED FIXED
mozilla0.9.7

People

(Reporter: alexeyc2003, Assigned: dbaron)

Details

(Keywords: dom1, testcase)

Attachments

(3 files, 2 obsolete files)

Build: 2001112009

According to
http://www.w3.org/TR/REC-CSS2/visuren.html#absolute-positioning

An element with absolute or fixed position should become a containing block for
all of it's descendants.

In Mozilla, if an child is added through DOM to an absolutely positioned element
the behaviour is correct.
But if a child is added to a fixed element, viewport is treated as it's container.

See attached testcase.
Attached file testcase
Keywords: dom1, testcase
Seeing this on Linux 2001-11-23-08 too.

The DOM is correct (per DOM inspector) but looks like the frame model is confused...
OS: Windows 2000 → All
Hardware: PC → All
Attached patch fix (obsolete) — Splinter Review
easy to fix
Status: NEW → ASSIGNED
Priority: -- → P2
Target Milestone: --- → mozilla0.9.7
I should see if I can fix bug 91060 at the same time.
This patch makes two changes:
 * considersl fixed positioned elements as well, in addition to relative and
absolute (fixes this bug)
 * walks down two scroll frames in addition to just one (although I'm leaving
the just-one code since we could start from the frame where it is just one), to
fix bug 91060.
Comment on attachment 59112 [details] [diff] [review]
patch that also fixes bug 91060, diff -w (for review)

David, I assume this patch is obsolete as well?
No, one is a diff -w and the other isn't.  I just accidentally attached the
wrong one when I attached the first non -w.
Comment on attachment 59113 [details] [diff] [review]
patch that also fixes bug 91060

sr=attinasi
Attachment #59113 - Flags: superreview+
Comment on attachment 59113 [details] [diff] [review]
patch that also fixes bug 91060

r=waterson
Attachment #59113 - Flags: review+
Fix checked in 2001-11-27 20:57 PDT.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
verified on 2001112803
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: