WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
16790
Problem with Auto Table Layout Algorithm
https://bugs.webkit.org/show_bug.cgi?id=16790
Summary
Problem with Auto Table Layout Algorithm
Yuzhu Shen
Reported
2008-01-08 19:30:26 PST
In Webkit, if a table contains a cell with "colspan" attribute, automatic table layout algorithm needs to transfer its minimal width constraint to all the columns it spans. The algorithm contains a step to distribute the minimal width constraint to columns in proportion to their maximum width effMaxWidth (in AutoTableLayout.cpp: AutoTableLayout::calcEffectiveWidth()). For those columns that have a pecentage width, this width doesn't affect the effMaxWidth and isn't considered in this minimal width distribution process. This may affect the final table layout. IE and Firefox both work fine in this scenario. Please refer to the attachment for an illustration. However, since "UAs are not required to implement this algorithm to determine the table layout in the case that ¡¯table-layout¡¯ is ¡¯auto¡¯; they can use any other algorithm even if it results in different behavior."(CSS2 17.5.2.2). I am not sure whether we should modify the algorithm.
Attachments
An example for the problem.
(783 bytes, text/html)
2008-01-08 19:31 PST
,
Yuzhu Shen
no flags
Details
Safari 15.5 differs from other browsers
(388.60 KB, image/png)
2022-07-12 11:50 PDT
,
Ahmad Saleem
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Yuzhu Shen
Comment 1
2008-01-08 19:31:07 PST
Created
attachment 18340
[details]
An example for the problem.
Eric Seidel (no email)
Comment 2
2008-01-10 11:17:01 PST
The test case is pretty clear if you open it up in Firefox as well.
Eric Seidel (no email)
Comment 3
2008-01-10 11:19:07 PST
Given that we differ from IE and FF in this test, I would suggest we change our behavior. Especially if this can actually be found on live sites.
Ahmad Saleem
Comment 4
2022-07-12 11:50:56 PDT
Created
attachment 460814
[details]
Safari 15.5 differs from other browsers I am able to reproduce the bug in Safari 15.5 on macOS 12.4 as can be seen from attached screenshot. Second line of table layout is not same as other browsers compared to Safari. If I am testing incorrectly, please retest accordingly. Thanks!
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