Closed Bug 333643 Opened 19 years ago Closed 16 years ago

table caption 1px jog

Categories

(Core :: Layout: Tables, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 155955

People

(Reporter: fredclown, Unassigned)

Details

(Keywords: testcase)

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1 When using a caption inside a table with borders the caption ends up being 1px less in width than the rest of the table. Reproducible: Always Steps to Reproduce: Table which is any width and border-collapse set to collape Table caption which has a background color and 1 px border Table cells which have background color and 1 px border Actual Results: In this scenario the caption will be 1 px less in width on the left side of the table and thus not lining up with the rest of the table. Expected Results: The caption should be the same width as the rest of the table.
Component: General → Layout
Product: Firefox → Core
QA Contact: general → layout
Version: unspecified → 1.8 Branch
Attached file 1 px caption jog
This attachment is a working case of the issue described. After looking into it further I think the issue has to do with border-collapse.
See this with latest trunk as well, Windows XP.
Component: Layout → Layout: Tables
Keywords: testcase
QA Contact: layout → layout.tables
Version: 1.8 Branch → Trunk
See this on WinXP with 1.5.0.2, have seen it with earlier versions as well. Davin's attachment demonstrates the issue entirely.
Seeing this as well, and from my understanding of the specs (specifically the diagram in 17.4 - http://www.w3.org/TR/CSS21/tables.html#q5 ) the caption margins and borders shouldn't be affected by the borders and margins of the main table. Fwiw it's possible that this is a dupe of bug #297676
Mozilla/5.0 (Windows; U; Windows NT 5.0; fr; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7 Same problem today, I was designing a site and was facing the problem. Davin's attachment was still demonstrating the problem.
The border of border-collapsed tables used to be drawn outside the table dimensions (for example it was drawn over the margin). So in this case, table and caption got the same width, but the table's border is drawn outside the box. This was recently redefined by CSS 2.1 and was then fixed in bug 155955.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: