Bug 20213

Summary: colspan in table-layout:fixed does not add up widths properly
Product: WebKit Reporter: Eric Roman <eroman>
Component: TablesAssignee: Julien Chaffraix <jchaffraix>
Status: RESOLVED FIXED    
Severity: Normal CC: inferno, jchaffraix, tony, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Attachments:
Description Flags
In WebKit the TABLE overflows the containing red DIV
none
Proposed patch, land the test case.
none
Patch for landing
none
Patch for landing none

Eric Roman
Reported 2008-07-29 12:32:27 PDT
When columns widths are specified via <colgroup> on a table-layout:fixed, a TD with colspan=N is getting width N*<first-col-spanned> rather than sum(<i-th col spanned). I observed this problem on the site: http://www.megafonmoscow.ru/ IE7, Firefox 2, Firefox 3, Opera 9 render correctly. Safari 3.1 and WebKit r35417 have this problem. Will attach repro case.
Attachments
In WebKit the TABLE overflows the containing red DIV (528 bytes, text/html)
2008-07-29 12:34 PDT, Eric Roman
no flags
Proposed patch, land the test case. (3.02 KB, patch)
2012-06-17 16:29 PDT, Julien Chaffraix
no flags
Patch for landing (3.27 KB, patch)
2012-06-17 18:00 PDT, Julien Chaffraix
no flags
Patch for landing (3.30 KB, patch)
2012-06-17 18:26 PDT, Julien Chaffraix
no flags
Eric Roman
Comment 1 2008-07-29 12:34:26 PDT
Created attachment 22542 [details] In WebKit the TABLE overflows the containing red DIV
Eric Roman
Comment 2 2008-07-29 12:39:07 PDT
Julien Chaffraix
Comment 3 2012-06-17 15:52:49 PDT
This bug was fixed: we now match Firefox and Opera when computing the cell with the colspan. I think it was fixed by bug 14858, though I haven't bisected so it's only a guess. The previous bug landed coverage for auto table layout but not for fixed table layout. As this impacted a web-site, taking the bug to land some coverage.
Julien Chaffraix
Comment 4 2012-06-17 16:29:34 PDT
Created attachment 148030 [details] Proposed patch, land the test case.
Abhishek Arya
Comment 5 2012-06-17 16:37:02 PDT
Comment on attachment 148030 [details] Proposed patch, land the test case. View in context: https://bugs.webkit.org/attachment.cgi?id=148030&action=review > LayoutTests/ChangeLog:8 > + The bug has been fixed (likely by bug 14858) so landing the test case as the combinaison of fixed table layout typo 'combinaison' > LayoutTests/fast/table/fixed-table-layout/fixed-layout-column-colspan-wrong-size.html:33 > + <colgroup> nit: indent of table children to the right.
Julien Chaffraix
Comment 6 2012-06-17 18:00:59 PDT
Created attachment 148031 [details] Patch for landing
Abhishek Arya
Comment 7 2012-06-17 18:02:45 PDT
forgot the typo Sir :(
Julien Chaffraix
Comment 8 2012-06-17 18:26:20 PDT
Created attachment 148033 [details] Patch for landing
Julien Chaffraix
Comment 9 2012-06-17 18:28:23 PDT
(In reply to comment #7) > forgot the typo Sir :( Damn, I thought I changed that but no luck. As you can see, I don't know how to spell this word properly in English so I have reworked the ChangeLog not to use it.
WebKit Review Bot
Comment 10 2012-06-17 19:22:31 PDT
Comment on attachment 148033 [details] Patch for landing Clearing flags on attachment: 148033 Committed r120560: <http://trac.webkit.org/changeset/120560>
WebKit Review Bot
Comment 11 2012-06-17 19:22:36 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.