Bug 3243 - Table captions don't work correctly
Summary: Table captions don't work correctly
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tables (show other bugs)
Version: 412
Hardware: All All
: P2 Normal
Assignee: Nobody
Keywords: HasReduction, InRadar
Depends on: 14309
  Show dependency treegraph
Reported: 2005-06-01 16:11 PDT by Dave Hyatt
Modified: 2008-02-22 20:30 PST (History)
4 users (show)

See Also:

testcase (753 bytes, application/xhtml+xml)
2005-09-23 17:38 PDT, Gerrit Kaiser
no flags Details
html showing caption width bug (503 bytes, text/html)
2006-06-04 06:56 PDT, yan wong
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Hyatt 2005-06-01 16:11:15 PDT
There are many issues related to captions.  Some values of caption-side are not supported, and the 
dimensions of the caption box are wrong.  Tables need to be re-architected to have an outer rendering 
object that encloses the caption and an inner rendering object that actually represents the table.
Comment 1 Dave Hyatt 2005-06-01 16:11:33 PDT
Apple Bug: rdar://4122840/
Comment 2 Gerrit Kaiser 2005-09-23 17:38:46 PDT
Created attachment 4022 [details]

When the window resized, the caption doesn't reflow. Its containing table,
however, does.
I'd really like to see this fixed.
Comment 3 yan wong 2006-06-04 06:56:58 PDT
Created attachment 8688 [details]
html showing caption width bug

Another test case: caption width is not equal to table width when width is specified as a percentage.
Comment 4 Joost de Valk (AlthA) 2006-07-10 14:55:53 PDT
I'm reassigning this to webkit-unassigned, since it doesn't seem Hyatt is working on this, and cc-ing Beth, since i seem to recall tables are her department these days.
Comment 5 Christopher Jerome 2006-07-18 07:47:32 PDT
Yep! CONFIRMED! as plain as day...

This bugger is still present as of SVN rev. 15500.
Comment 6 Joost de Valk (AlthA) 2006-07-18 07:50:01 PDT
I didn't confirm it? damn i'm stupid :P
Comment 7 Eric Seidel (no email) 2007-12-28 22:06:17 PST
The first test case looks fine.  The second still fails.
Comment 8 Eric Seidel (no email) 2008-01-05 15:38:59 PST
The second test case seems less broken as of late.  Initially the caption is resized correctly, but then when you resize the window the test case fails.
Comment 9 Eric Seidel (no email) 2008-01-05 15:46:13 PST
TOT still looks different from FF3b2 to me:

ap reports that FF2 looks identical to WebKit TOT.
Comment 10 David Kilzer (:ddkilzer) 2008-02-22 15:30:10 PST
This bug appears to be fixed as of a local debug build of WebKit r30458.

Dave?  Beth?

Comment 11 Beth Dakin 2008-02-22 16:02:34 PST
This does appear to be fixed in TOT and Leopard as well. A very brief search through Changelogs reveals that there have been several changes to the table caption code of late that could have fixed this. Looks like it is safe to mark this as fixed!
Comment 12 Dave Hyatt 2008-02-22 20:30:17 PST
Captions are still massively broken.  This single bug isn't very helpful though.  We need to open individual bugs to cover the (many) open issues that remain.