[Webkit-unassigned] [Bug 42740] New: When a cell that spans multiple columns has 'width' other than 'auto', the width of unrelated columns may be affected incorrectly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jul 21 03:56:31 PDT 2010


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

           Summary: When a cell that spans multiple columns has 'width'
                    other than 'auto', the width of unrelated columns may
                    be affected incorrectly
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Windows XP
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Tables
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: luoyx at google.com
                CC: mjs at apple.com


Created an attachment (id=62163)
 --> (https://bugs.webkit.org/attachment.cgi?id=62163)
A test case showing the wrong layout with the bug

When a cell with width other than 'auto' spans multiple columns, if the minimum widths of (some of) the columns that it spans need to be increased, unrelated columns with 'auto' width will also be increased which is not expected. For example:

<table cellpadding="0" cellspacing="0">
    <tr>
        <td>td0</td>
        <td>td1</td>
        <td id="td2" style="width:100px">td2</td>
    </tr>
    <tr>
        <td>td3</td>
        <td id="td4" style="width:200px" colspan="2">td4</td>
    </tr>
</table>

The expected widths should be:
  td0, td3: x (max of minimum widths of 'td0' and 'td3')
  td1: 100
  td2: 100
  td4: 200

The actual widths are:
  td0, td3: x + 25
  td1: 75
  td2: 100
  td4: 175

That is, the width of unrelated column (td0/td3) is also increased.
But this bug won't occur if:
1. the width of the cell itself that spans columns need to be increased, but not the columns that the cell spans
2. if unrelated column's width is not 'auto'. For example above, if either td0 or td3 has width other than 'auto', the bug doesn't occur

-- 
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