WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WORKSFORME
75982
Div with absolute position in table cell still takes up layout space
https://bugs.webkit.org/show_bug.cgi?id=75982
Summary
Div with absolute position in table cell still takes up layout space
jgweissman
Reported
2012-01-10 12:38:24 PST
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.
Attachments
Test/Demo
(848 bytes, text/html)
2012-01-10 12:39 PST
,
jgweissman
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
jgweissman
Comment 1
2012-01-10 12:39:33 PST
Created
attachment 121891
[details]
Test/Demo
Karl Dubost
Comment 2
2023-10-02 22:42:10 PDT
For this bug, the behavior is the same in the Blink, Gecko and WebKit.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug