Closed Bug 199142 Opened 23 years ago Closed 21 years ago

absolutely positioned content in a table cell makes table cell expand

Categories

(Core :: Layout: Positioned, defect, P1)

x86
Linux
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: sballard, Unassigned)

Details

(Keywords: testcase)

Attachments

(3 files)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021210 Debian/1.2.1-3 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021210 Debian/1.2.1-3 Given a table cell that contains a relatively positioned div (outer) which in turn contains an absolutely positioned div (inner), the table cell is expanded to include the full size of the inner div. Per the standards, the inner div should be removed from normal flow, so the table cell should be sized as if the inner div is not present. Reproducible: Always Steps to Reproduce: Visit the URL linked to this bug (http://www.sab39.org/positiontest.html The testcase shows a 3x3 table. The middle cell of the table contains a div with "position: relative", which in turn contains a red div with "position: absolute" and a width and height of 100px. Actual Results: Mozilla renders the table with the red div completely inside the center table cell, expanding that cell to be large enough to fit it. Expected Results: Since the inner div has position: absolute, it should be removed from normal flow and should not affect the size of its containing table cell. Instead, the table should be rendered as if the red div were not present, and then the red div should be overlayed on top. Recent versions of Internet Explorer get this right.
Attached image desired rendering
Attached image current redering
david fixed the expansion bug a long time ago, now the abs pos div is too small.
this is more a r&a pos bug, the table has the correct size.
Assignee: table → position
Component: Layout: Tables → Layout: R & A Pos
QA Contact: madhur → ian
Attached file Testcase
URL is 404 so I recreated a testcase from the description and screenshots.
Well, the problem seems to be solved. I still see the wrong rendering in: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/2003-12-16 Firebird/0.7+ But when using Mozilla1.7RC2, I see the correct rendering.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: