Closed Bug 408374 Opened 17 years ago Closed 17 years ago

Content inside a table can be displayed outside a table cell

Categories

(Core :: Layout: Tables, defect)

1.8 Branch
All
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: josephfpage1983, Unassigned)

References

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11 Setting a left-padding on a table cell doesn't appear to be part of the minimum width calculate for automatic tables with a percentage specified for the table width. Reproducible: Always Steps to Reproduce: 1. Create an html file with the following code: <html> <head> <style type="text/css"> .test{padding-left:75px} </style> </head> <table width="100%" border="1"> <td>AREALLYBIGWORD</td> <td>AREALLYBIGWORD</td> <td width="100px"><span class="test">out</span></td> </table> </html> 2. Resize the window (small) Actual Results: the text "out" will display outside the table Expected Results: Either the width attribute on the td is enforced or the padding is included in the minimum width calculation
I can confirm this on Ffx 2.0.0.11: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.11) Gecko/2007112718 Firefox/2.0.0.11 I can also confirm that this is NOT a problem on Firefox 3 Beta 2 pre: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9b2pre) Gecko/2007121107 Minefield/3.0b2pre The fact that it is fixed on trunk makes me think that this is a dupe of a fixed bug, but I couldn't find one.
Component: General → Layout: Tables
Product: Firefox → Core
QA Contact: general → layout.tables
Version: unspecified → 1.8 Branch
Attached file Testcase (deleted) —
FWIW, the new layout is correct per CSS 2.1, 17.5.2.2: http://www.w3.org/TR/CSS21/tables.html#auto-table-layout It was fixed on trunk in the range 20061207 -- 20061208. It's very unlikely it will ever be fixed for Firefox 2.x which only takes security and crash fixes at this point. -> FIXED (by bug 300030)
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Depends on: reflow-refactor
Flags: in-testsuite?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: