Bug 56174

Summary: Table cells with dynamically added percentage height descendants do not grow in size if the table has already been laid out.
Product: WebKit Reporter: Andy Estes <aestes>
Component: New BugsAssignee: Andy Estes <aestes>
Status: RESOLVED FIXED    
Severity: Normal CC: aestes, bdakin, hyatt, mitz, simon.fraser
Priority: P2 Keywords: HasReduction, InRadar
Version: 528+ (Nightly build)   
Hardware: Other   
OS: OS X 10.5   
Attachments:
Description Flags
Test case
none
Patch hyatt: review+

Andy Estes
Reported 2011-03-11 01:15:39 PST
Table cells with dynamically added percentage height descendants do not grow in size if the table has already been laid out.
Attachments
Test case (996 bytes, text/html)
2011-03-11 01:18 PST, Andy Estes
no flags
Patch (7.87 KB, patch)
2011-03-11 01:48 PST, Andy Estes
hyatt: review+
Andy Estes
Comment 1 2011-03-11 01:18:25 PST
Created attachment 85444 [details] Test case
Andy Estes
Comment 2 2011-03-11 01:18:40 PST
Andy Estes
Comment 3 2011-03-11 01:19:59 PST
Here is why I think this happens: Table cells ignore their specified size and collapse to fit their children. When the child div is added in the same run loop iteration as the table itself, the TD is sized appropriately (100% of the 100px TD). When the child div isn't present when the table is first laid out, the TD ignores its 100px sizing and collapses down. Then, when the child div is added in a separate run loop iteration, it is sized to be 100% of the collapsed TD instead of 100% of the TD's specified height of 100px.
Andy Estes
Comment 4 2011-03-11 01:48:13 PST
Dave Hyatt
Comment 5 2011-03-11 10:53:52 PST
Comment on attachment 85448 [details] Patch r=me
Andy Estes
Comment 6 2011-03-11 13:21:40 PST
Note You need to log in before you can comment on or make changes to this bug.