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)
Tracking
()
RESOLVED
DUPLICATE
of bug 297676
People
(Reporter: leon.stringer, Unassigned)
References
()
Details
(Keywords: testcase)
Attachments
(1 file)
561 bytes,
text/html
|
Details |
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.
Comment 1•19 years ago
|
||
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
Comment 2•19 years ago
|
||
Testcase
Updated•19 years ago
|
QA Contact: general → layout.tables
*** 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.
Description
•