Closed
      
        Bug 309714
      
      
        Opened 20 years ago
          Closed 20 years ago
      
        
    
  
CSS margin incorrectly applied between TABLE and CAPTION
Categories
(Core :: Layout: Tables, defect)
        Core
          
        
        
      
        
    
        Layout: Tables
          
        
        
      
        
    Tracking
()
        RESOLVED
        DUPLICATE
          of bug 297676
        
    
  
People
(Reporter: vosv9md02, Unassigned)
Details
Attachments
(1 file)
| 1.21 KB,
          text/html         | Details | 
User-Agent:       Opera/8.50 (Windows NT 5.0; U; en)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7
If you create a table including a caption tag, then apply table { margin: value;
 } then the margin is applied to the table but not the caption. 
The caption is part of the table element and should be included within the 
bounds of the table element; eg. in this situation that means the margin should 
be applied above the caption if the caption is sitting at the top of a table; 
not between the table and caption.
Reproducible: Always
Steps to Reproduce:
1. In an (X)HTML file, create a TABLE including a CAPTION (source below)
2. Use CSS to apply a margin to the TABLE
3. View result...
Actual Results:  
In Firefox, the caption is pushed away from the table cells, and extends to the 
width of the table+margin.
Expected Results:  
The caption should remain attached to the top of the table, with no gap between 
the caption and the cells. It should be the exact same width as the table cell 
group.
| Comment 2•20 years ago
           | ||
Indeed, the world seems to have changed: in
http://www.w3.org/TR/2004/CR-CSS21-20040225/tables.html#q5 we were correct,
collapsing between a table's margin-top and a caption's margin-bottom, but in
http://www.w3.org/TR/2005/WD-CSS21-20050613/tables.html#q5 we should be
collapsing the table's margin-top and the caption's margin-*top*.
Status: UNCONFIRMED → NEW
Component: General → Layout: Tables
Ever confirmed: true
OS: Windows 2000 → All
Product: Firefox → Core
QA Contact: general → layout.tables
Hardware: PC → All
Version: unspecified → Trunk
I think it is adupe of bug 297676
|   | ||
| Comment 4•20 years ago
           | ||
*** This bug has been marked as a duplicate of 297676 ***
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
          You need to log in
          before you can comment on or make changes to this bug.
        
Description
•