Closed Bug 93060 Opened 23 years ago Closed 21 years ago

[ABS POS]{ib} Absolute placement broken when container is empty

Categories

(Core :: Layout: Block and Inline, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 79315
mozilla1.1alpha

People

(Reporter: mozilla3eran, Unassigned)

References

Details

(Keywords: css2, testcase)

Attachments

(1 file)

An absolutely positioned element whose container is an empty relatively positioned element is not rendered. Example (full HTML in attachment): -------------------- .outer { position: relative; } .inner { position: absolute; top: 10px; left: 0px; } ... BODY-TEXT <SPAN class="outer"> BEGIN-OUTER <SPAN class="inner"> INNER </SPAN> END-OUTER </SPAN> BODY-TEXT -------------------- Above, "INNER" is rendered slightly below "BEGIN-OUTER", which is correct. However, if you delete the text 'BEGIN-OUTER' and 'END-OUTER' then 'INNER' is not rendered anywhere. Tested in Mozilla 0.9.2. This trick seems useful for adding annotation to text (without disturbing flow). Is there a more elegant way of doing that?
Attached file testcase (deleted) —
Confirmed, 2001-08-01-03 on Windows 98 SE.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: testcase
OS: Linux → All
Reassigning to attinasi.
Assignee: karnaze → attinasi
Target Milestone: --- → mozilla1.1
yet another block-in-inline problem. Making the outer element a display:block element makes things work...
Summary: [ABS POS] Absolute placement broken when container is empty → [ABS POS]{ib} Absolute placement broken when container is empty
Keywords: css2
Depends on: 135082
.
Assignee: attinasi → block-and-inline
Component: Layout → Layout: Block & Inline
QA Contact: cpetersen0953 → ian
This was a dup of bug; it's fixed in current builds. *** This bug has been marked as a duplicate of 79315 ***
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: