[Webkit-unassigned] [Bug 17583] Inconsistency between browsers of rendering tables with fixed layout and width set to 'auto'

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 9 13:57:45 PST 2011


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


Darth <priyajeet.hora at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |priyajeet.hora at gmail.com




--- Comment #7 from Darth <priyajeet.hora at gmail.com>  2011-02-09 13:57:45 PST ---
I am unsure if I should open a new bug for the stuff below, but it seems similar to this bug.

Setting a width to 0px for a td or it's sub element, like say on a div doesn't seem to have an effect in webkit. It seems that width is ignored.

Couple of test cases are as follows (as well as attached) which can show the difference between webkit and FF/IE:

<!DOCTYPE html>
<html>
<body>
<table cellpadding=0 cellspacing=0 style="width: 100%;">
  <tbody>
    <tr>
      <td style="width: 0px;">
        <input type=checkbox />
      </td>
      <td>test</td>
    </tr>
  </tbody>
</table>
</body>
</html>

In the above case, the checkbox and the term "test" should be next to each other. In other words the td containing the checkbox should take the width of it's child element. If in the above code, I change the 0px to say 1px, then it works as expected.

<!DOCTYPE html>
<html>
<body>
<table cellpadding=0 cellspacing=0>
  <tbody>
    <tr>
      <td style="background: red;">
        <div style="width: 0px;">test</div>
      </td>
      <td style="background: green; width: 100%;">test</td>
    </tr>
  </tbody>
</table>
</body>
</html>

This one shows an issue similar to the prior test case. But it also shows how webkit defaults to a 100% width on the table while FF/IE default to auto. In this test case the red part should not be visible as the div has a 0px width. But it seems the td ignores that and just takes up the width of the div's child which is simple text.

There is also a downstream bug in the domain of these issues
http://code.google.com/p/chromium/issues/detail?id=72309

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