float:left on a <td> breaks table rendering in 1.5/1.6a

RESOLVED INVALID

Status

()

Core
Layout: Floats
RESOLVED INVALID
15 years ago
15 years ago

People

(Reporter: Andreas Lange, Unassigned)

Tracking

Trunk
x86
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment)

(Reporter)

Description

15 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007

The URL shows a page where the left column of a table is clipped after a few
pixels. The HTML boils down to this:
 <table border="1">
  <tr>
   <td style="
     float: left;
     overflow: hidden;
     width: 20%;
   ">
   abcdefghijklmnopqrstuvxyz
   </td>
   <td>
   aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
   </td>
  </tr>
 </table>

This renders a table where the left cell occupies very little space, the right
cell takes its 80%, and the space in between the cells doesn't really belong
anywhere. Removing the overflow attribute makes the cell content fill the area
for the left cell as it should, but the cell border keeps the same minimal size.

Mozilla 1.4 (and IE6) renders this as a complete table, the strange behaviour
appears in 1.5 and is currently in CVS head. 

I don't really know if this i correct CSS or not, but even if it weren't it
should not be able to break tables, should it?

Reproducible: Always

Steps to Reproduce:
(Reporter)

Comment 1

15 years ago
Created attachment 134163 [details]
testcase
Our rendering looks pretty much correct.  'float' on table cells makes them no
longer be table cells (see http://www.w3.org/TR/CSS21/visuren.html#dis-pos-flo
).  Then we construct anonymous table cells according to the rules in
http://www.w3.org/TR/CSS21/tables.html#anonymous-boxes .
Status: UNCONFIRMED → RESOLVED
Last Resolved: 15 years ago
Resolution: --- → INVALID
(Reporter)

Comment 3

15 years ago
Thanks for explaining why it is correct. Sorry for taking your time with an
invalid bug.

I'll go bash the webmaster! :)
You need to log in before you can comment on or make changes to this bug.