WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 279450
14856
table inside a table containing a text line should adjust its size to the inline content
https://bugs.webkit.org/show_bug.cgi?id=14856
Summary
table inside a table containing a text line should adjust its size to the inl...
Matt Perry
Reported
2007-08-01 14:41:14 PDT
Reduced test case coming up. Compare the above page (or upcoming test) in Safari and Firefox. Notice how Safari wraps the last <select> control to the second line, even though there should be enough room to fit them all on the same line. I've only been able to determine that this is somehow related to <select> controls inside of a table, that the previous <td> has a width percent set, and that the outer <td> has rowspan set. My vague guess is that the size of a <select> control isn't properly taken into account when determining the width of the table it's inside, and then is wrapped when it turns out to be too big.
Attachments
reduced test case
(586 bytes, text/html)
2007-08-01 14:41 PDT
,
Matt Perry
no flags
Details
even more reduced test case
(314 bytes, text/html)
2008-01-17 02:27 PST
,
Eric Seidel (no email)
no flags
Details
even more reduced test case
(237 bytes, text/html)
2008-01-17 02:38 PST
,
Eric Seidel (no email)
no flags
Details
rendering in safari, firefox, chrome
(101.33 KB, image/png)
2024-04-25 23:12 PDT
,
Karl Dubost
no flags
Details
rendering in safari, firefox, chrome
(95.56 KB, image/png)
2024-04-25 23:33 PDT
,
Karl Dubost
no flags
Details
WebKit ToT Result
(3.59 MB, image/png)
2024-10-04 17:16 PDT
,
Ahmad Saleem
no flags
Details
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Matt Perry
Comment 1
2007-08-01 14:41:56 PDT
Created
attachment 15793
[details]
reduced test case
David Kilzer (:ddkilzer)
Comment 2
2007-08-02 06:43:41 PDT
Confirmed with a local debug build of WebKit
r24803
with Safari 3 Public Beta v. 3.0.3 (522.12.1) on Mac OS X 10.4.10 (8R218). This is not a regression as the same behavior occurs with Safari 2.0.4 (419.3) with original WebKit on 10.4.10. Renders as expected in Firefox 2.0.0.6 and Opera 9.21.
Eric Seidel (no email)
Comment 3
2008-01-17 02:27:10 PST
Created
attachment 18495
[details]
even more reduced test case
Eric Seidel (no email)
Comment 4
2008-01-17 02:38:02 PST
Created
attachment 18496
[details]
even more reduced test case
Eric Seidel (no email)
Comment 5
2008-01-17 02:40:52 PST
I suspect this is some incorrect prefWidth calculation. Possibly the colspan is not taken into account during the layout of the inner table. Since w/o the col-span the prefWidth for the first td would be 0, with the colspan, it's 500.
Eric Seidel (no email)
Comment 6
2008-01-17 02:43:51 PST
Suspicious: void FixedTableLayout::calcPrefWidths(int& minWidth, int& maxWidth) { // FIXME: This entire calculation is incorrect for both minwidth and maxwidth.
Eric Seidel (no email)
Comment 7
2008-01-17 02:58:18 PST
Actually, this is an AutoTableLayout table, so my previous comment does not apply. I'm not familiar enough with table layout to know immediately where this bug would be, and thus-far my debugging has not yielded a culprit. Next bug in the list...
Dave Hyatt
Comment 8
2008-01-17 10:43:51 PST
Colspans don't stretch properly in a lot of circumstances. This bug is in Radar somewhere. It's very old.
Eric Seidel (no email)
Comment 9
2008-01-17 11:53:43 PST
(In reply to
comment #8
)
> Colspans don't stretch properly in a lot of circumstances. This bug is in > Radar somewhere. It's very old. >
Well, you were looking for old/bad CSS bugs to really enrage you yesterday... I might suggest this is one to get excited about, since if
bug 15218
turns out to really be a dupe then this has been seen in 2 major sites. :)
Dave Hyatt
Comment 10
2008-01-17 12:17:55 PST
If this is the bug I'm thinking of, it's really hard to fix. Our 2-pass layout system (using min/max pref widths and then laying out) made this one really hard. However this might just be a completely different issue.
Elliott Sprehn
Comment 11
2012-06-26 00:52:05 PDT
Maybe you want to take a stab at this Julien? Or point me at what part of the table layout code to look into.
Ahmad Saleem
Comment 12
2023-02-24 04:28:13 PST
I am able to reproduce this bug in Safari Technology Preview 164 and the test case does not show in one line like Chrome Canary 112 and Firefox Nightly 112.
Frances Cornwall
Comment 13
2024-04-25 13:33:42 PDT
Related to
https://bugs.webkit.org/show_bug.cgi?id=20426
.
Frances Cornwall
Comment 14
2024-04-25 14:38:07 PDT
Related to:
https://bugs.webkit.org/show_bug.cgi?id=15218
.
Radar WebKit Bug Importer
Comment 15
2024-04-25 14:45:49 PDT
<
rdar://problem/127075679
>
Karl Dubost
Comment 16
2024-04-25 23:12:32 PDT
Created
attachment 471155
[details]
rendering in safari, firefox, chrome Adding body * {outline: 1px solid purple} to better see what is happenning.
Karl Dubost
Comment 17
2024-04-25 23:33:11 PDT
Created
attachment 471156
[details]
rendering in safari, firefox, chrome Or to give a bit of space to breathe and two different colors for tables. body > table * { padding: 1ch; outline: 1px dashed purple; } table table * { outline: 1px dashed red; } Basically it looks like the width the table inside the td colspan="2" is not large enough.
Ahmad Saleem
Comment 18
2024-10-04 17:16:32 PDT
Created
attachment 472816
[details]
WebKit ToT Result Based on Karl's input, I updated test case:
https://jsfiddle.net/w7zrad1L/
and WebKit ToT () seems to have progressed this as can be seen from attachment. Marking this as 'RESOLVED CONFIGURATION CHANGED' (till we figured out what progressed this). Just to flag - Safari Technology Preview 204 is still broken.
zalan
Comment 19
2024-10-04 17:36:31 PDT
This has progressed at
283711@main
*** This bug has been marked as a duplicate of
bug 279450
***
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