Closed
Bug 87046
Opened 24 years ago
Closed 24 years ago
relatively positioned div takes it's width from absolutely positioned one inside
Categories
(Core :: Layout, defect)
Tracking
()
People
(Reporter: mrj, Assigned: karnaze)
Details
Attachments
(1 file)
315 bytes,
text/html
|
Details |
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux 2.4.3-20mdk i686; en-US; 0.8) Gecko/20010409
BuildID: 20010615
See the following code:
<html>
<body>
<table>
<tr>
<td><div style="background: #ff0000; position: relative;">ddd
<div style="background: #00ff00; position: absolute; width: 400px; left: 20px;
top: 20px;">inner div</div>
</div></td>
</tr>
</table>
</body>
</html>
here relative positioned div (red) should take it's width from text inside it
('ddd') but takes width from inner absolutely positioned div(green). With height
all ok.
Reproducible: Always
Steps to Reproduce:
Any absolutely positioned element, placed inside relatively positioned stretches
the relatively positioned element to it's width.
Comment 1•24 years ago
|
||
Updated•24 years ago
|
Summary: relatively positioned div takes it's width from absolutely positioned one inside → relatively positioned div takes it's width from absolutely positioned one inside
Comment 2•24 years ago
|
||
I see this on build 2001062004 on Win2k (SP2). Marking OS --> All. Also, I'm
not sure, I think this should be Style System instead of Layout. Any thoughts?
Jake
OS: Linux → All
Sorry the bug I'm marking this a duplicate of is so technical. I wasn't
actually sure what the symptoms would be when I wrote that bug, but this
testcase is basically where I expected a problem to exist
*** This bug has been marked as a duplicate of 66147 ***
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•