Table cell with "nowrap" does not take float width into account




10 years ago
10 years ago


(Reporter: sam, Unassigned)



Firefox Tracking Flags

(Not tracked)




(1 attachment, 1 obsolete attachment)

921 bytes, text/html


10 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv: Gecko/20080702 Firefox/
Build Identifier:

If a table cell's colspan attribute is changed, if the table cell's white-space property is set to nowrap, if the table cell contains a floated element, if the table's width is constrained by a containing element and the table's table-layout property is automatic, the table cell's recalculated width does not account for the width of the floated element within the table cell.

Reproducible: Always

Steps to Reproduce:
1. go to url
2. see
Actual Results:  
the text of the table cell (th#a) overflows out of the cell.

Expected Results:  
the cell grows to contain the text

originally found the bug on firefox but I tested it on the latest build.

Comment 1

10 years ago
Created attachment 331928 [details]
test case

Comment 2

10 years ago
Created attachment 331931 [details]
further reduced

I am dumb and javascript / recalculation is unnecessary. The original calculation is wrong as well.
Attachment #331928 - Attachment is obsolete: true

Comment 3

10 years ago
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.1a2pre) Gecko/2008080304 Minefield/3.1a2pre

I see the overlap too.  Thanks for the clear testcase.

Related to bug 325412 and/or bug 83330?
Ever confirmed: true
Keywords: testcase
OS: Windows Vista → All
Hardware: PC → All
Summary: table cell width recalculated incorrectly → Table cell with "nowrap" does not take float width into account
You need to log in before you can comment on or make changes to this bug.