Closed Bug 48653 Opened 26 years ago Closed 26 years ago

abs. pos. within rel. pos. doesn't work [ABS POS]

Categories

(Core :: Layout, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED WORKSFORME

People

(Reporter: jackd, Assigned: buster)

References

()

Details

Attachments

(1 file)

Positioning an item using CSS absolute positioning within a context defined with relative positioning does not work; the item is positioned absolutely using screen coordinates instead of the context in which it was defined. For example, <span style="position:relative"> hello, world. <span style="position:absolute;top:20px"> 20 pixels down </span> </span> The text "20 pixels down" is positioned 20 pixels from the top of the screen, not from the period in "hello, world." In addition to this problem, any use of "position:relative" causes the browser to crash when the page is reloaded.
See www.geocities.com/jackdignan/MozillaCSSP.html for an example of this problem.
over to style system
Assignee: asa → pierre
Status: UNCONFIRMED → NEW
Component: Browser-General → Style System
Ever confirmed: true
QA Contact: doronr → chrisd
The crash is covered by bug 46356. The layout problem is not.
This is a layout problem: the style information is correct. Also, attaching a complete testcase...
Assignee: pierre → buster
Component: Style System → Layout
QA Contact: chrisd → py8ieh=bugzilla
Summary: absolute positioning within relative positioning doesn't work → absolute positioning within relative positioning doesn't work [ABS POS]
I think this page is working correctly, except that the default "left: auto" isn't offsetting the abs. pos. element correctly. I've submitted this as bug 53052. This bug is about what box the abs. pos. element is offset from, the body (incorrect) or the containing block (the rel. pos. element, correct.) (spam: changed the summary to use abbreviations so it fits in a bugzilla query page)
Blocks: 53052
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → WORKSFORME
Summary: absolute positioning within relative positioning doesn't work [ABS POS] → abs. pos. within rel. pos. doesn't work [ABS POS]
Works For Me: OS: Windows 98 Platform: PC Mozilla Build #: 2000100508
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: