Closed Bug 330189 Opened 19 years ago Closed 19 years ago

Caption not affected when table centred with CSS auto margins

Categories

(Core :: Layout: Tables, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 297676

People

(Reporter: leon.stringer, Unassigned)

References

()

Details

(Keywords: testcase)

Attachments

(1 file)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.8.0.1) Gecko/20060306 Fedora/1.5.0.1-7 Firefox/1.5.0.1 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.8.0.1) Gecko/20060306 Fedora/1.5.0.1-7 Firefox/1.5.0.1 When you center a table with CSS margin-left: auto; margin-right: auto, the caption element isn't centred and stays in the default location (i.e. left justified). Reproducible: Always Steps to Reproduce: 1. Create a page with <table style="margin-left: auto; margin-right: auto". 2. Include a <caption> element in the table. Actual Results: The caption text stays left justified Expected Results: The caption would be centered. There is a workaround: <caption style="margin-left: auto; margin-right: auto"> but I think as the caption is part of the table this should be uneccessary, it should inherit the table's properties.
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9a1) Gecko/20060311 Firefox/1.6a1 ID:0000000000 Confirmed. This is contrary to the W3C's recommended rendering: http://www.w3.org/TR/1999/REC-html401-19991224/appendix/notes.html#layout
Status: UNCONFIRMED → NEW
Component: General → Layout: Tables
Ever confirmed: true
Product: Firefox → Core
Version: unspecified → Trunk
Attached file Testcase
Testcase
QA Contact: general → layout.tables
Related to/duplicate of bug 244848, bug 209051, bug 144379 and/or bug 297676 comment 4?
*** This bug has been marked as a duplicate of 297676 ***
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: