[Webkit-unassigned] [Bug 75982] New: Div with absolute position in table cell still takes up layout space

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 10 12:38:24 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=75982

           Summary: Div with absolute position in table cell still takes
                    up layout space
           Product: WebKit
           Version: 525.x (Safari 3.2)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: jgweissman at gmail.com


A script sets a div to have absolute position. If the div is in a table cell, the layout is not recomputed and the position of other elements continues to reflect the size of the div. The position of the other elements should ignore the div.

See attached test. A single row table with two cells contains relatively positioned divs. The div in the first cell is invisible but takes up space, and the div in the second cell has a red background, to easily show its position. Initially the visible red div should appear displaced from the top left corner. A script sets a two second timer to set the invisible div to have absolute position. This should make the div no longer take up space, so the visible red div should move left into the corner. This works correctly in Firefox, but the red div fails to move in both Chrome and Safari.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list