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)
Tracking
()
mozilla1.1alpha
People
(Reporter: mozilla3eran, Unassigned)
References
Details
(Keywords: css2, testcase)
Attachments
(1 file)
550 bytes,
text/html
|
Details |
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?
Reporter | ||
Comment 1•23 years ago
|
||
Comment 2•23 years ago
|
||
Confirmed, 2001-08-01-03 on Windows 98 SE.
Updated•23 years ago
|
Target Milestone: --- → mozilla1.1
Comment 4•23 years ago
|
||
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
Comment 5•22 years ago
|
||
.
Assignee: attinasi → block-and-inline
Component: Layout → Layout: Block & Inline
QA Contact: cpetersen0953 → ian
Comment 6•21 years ago
|
||
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.
Description
•