Bug 38358 - Width of table caption incorrect if table has a border
Summary: Width of table caption incorrect if table has a border
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P2 Normal
Assignee: Nobody
URL: http://www.jcode.org/table_caption/te...
Depends on:
Reported: 2010-04-29 15:28 PDT by Jason Allen
Modified: 2011-10-31 05:23 PDT (History)
2 users (show)

See Also:

Caption not displaying at 100% of table (3.34 KB, application/xhtml+xml)
2011-03-21 15:34 PDT, Murray Nuttall
no flags Details
Minimalistic test-case (504 bytes, text/html)
2011-10-31 05:22 PDT, Matteo Settenvini
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Allen 2010-04-29 15:28:20 PDT
I have a table that includes a <caption> and if I put a 1 pixel border on the <table> element, the width of the caption does not increase so it ends up being 2 pixels shorter than the table.

Here is a test page showing first a captioned table with no border, then one with a border:

What the tables looks like in Firefox/IE:

What the tables looks like in WebKit:

I've tested this with WebKit nightly r58469, Safari 4.0, and Google Chrome and they all reproduce this issue.
Comment 1 Murray Nuttall 2011-03-21 15:34:48 PDT
Created attachment 86376 [details]
Caption not displaying at 100% of table

I am having this issue with Windows 7 64-bit using either Chrome or Safari.
Comment 2 Alexey Proskuryakov 2011-03-22 09:50:01 PDT
Duplicate of bug 14309?
Comment 3 Murray Nuttall 2011-03-22 13:13:35 PDT
(In reply to comment #2)
> Duplicate of bug 14309?

Possibly. Though I wasn't sure if I should mention my problem under a similar operating system from what I'm using, also the other bug has been around since 2008 and I'm pretty sure I've only started noticing it?
Comment 4 Matteo Settenvini 2011-10-31 05:22:55 PDT
Created attachment 113041 [details]
Minimalistic test-case

I am also encountering this problem in both latest Epiphany and Google Chrome.
Attaching a minimalistic test-case.