Closed
Bug 1235
Opened 26 years ago
Closed 25 years ago
{feature} we don't handle relatively positioned objects quite right
Categories
(Core :: Layout, enhancement, P5)
Tracking
()
M6
People
(Reporter: kipp, Assigned: troy)
Details
according to css2, the relatively positioned object becomes a containing block which means we need to do the body-block wrapping stuff we do for absolute positioning. this doesn't help us do ILAYER, but at least we can make css2 people happy.
Thinking about it a little it isn't so simple as just wrapping it in a body. The mechanics of that are easy to do (we just call CreateWrapperFrame), but just doing that doesn't give us the correct result. Are you going to put the wrapped BODY frame in your list of flowed children? I assume so. The tricky part is what happens if the relative positioned element isn't at the left edge of the line. It needs to be in the same exact position inside of the body that it would have been if it had been reflowed in-place This requires more thought than just wrapping it in a body. Here's some HTML that demonstrated how ugly it gets. Notice that the background color is only rendered where text is displayed. Both Navigator and IE do it that way. <style> #move-me {background-color:gray; position:relative; top:1in; left:1in} </style> <body> <p>Some text in a paragraph <span id=move-me>Here is some text in a span with a floater_ <img src="house.gif" width=50 height=50 align=left> that we're going to use relative positioning to move down and to the right some</span> and the text following the relative positioned element.</p> <p>Here's some text that follows. Notice that this text will get obscured by the relative positioned text because that text has a view and sides above this text in the z-order.</p> </body>
Comment 3•26 years ago
|
||
per leger, assigning QA contacts to all open bugs without QA contacts according to list at http://bugzilla.mozilla.org/describecomponents.cgi?product=Browser
Severity: normal → enhancement
Priority: P2 → P5
Summary: we don't handle relatively positioned objects quite right → {feature} we don't handle relatively positioned objects quite right
Seeing as you are working on it, you should have the bug to close when you have finished...
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
Updated•25 years ago
|
Status: RESOLVED → VERIFIED
Comment 6•25 years ago
|
||
This bug is a duplication of 5016.
You need to log in
before you can comment on or make changes to this bug.
Description
•