[Webkit-unassigned] [Bug 86671] New: Standalone table-columns should be wrapped in anonymous tables

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed May 16 13:39:16 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=86671

           Summary: Standalone table-columns should be wrapped in
                    anonymous tables
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
               URL: http://www.w3.org/TR/CSS2/tables.html#anonymous-boxes
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: leviw at chromium.org
                CC: eric at webkit.org, jchaffraix at webkit.org


According to the linked spec: 
- A 'table-column' box is misparented if its parent is neither a 'table-column-group' box nor a 'table' or 'inline-table' box.
- A row group box, 'table-column-group' box, or 'table-caption' box is misparented if its parent is neither a 'table' box nor an 'inline-table' box.

In the code, we have the following lines in RenderObject::addChild:

    if (newChild->isTableCol() && newChild->style()->display() == TABLE_COLUMN_GROUP)
        needsTable = !isTable();

This should be the following to cover both points mentioned above (table-column and table-column-group are both RenderTableCols):

    if (newChild->isTableCol() && newChild->style()->display() == TABLE_COLUMN_GROUP)
        needsTable = !isTable();
    else if (newChild->isTableCol())
        needsTable = !isTable() && style()->display() != TABLE_COLUMN_GROUP;

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list