Closed
Bug 333507
Opened 19 years ago
Closed 16 years ago
adding padding-left to table cell causes other cell to wrap, even though there is room to show entire table
Categories
(Core :: Layout: Tables, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: asefkow, Unassigned)
Details
(Keywords: testcase)
Attachments
(3 files, 1 obsolete file)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1
I have a simple table with one row and two cells in the row.
Both cells are marked with style="width:50%". Both cells have plain text.
The first cell has a little bit longer text.
If I add "padding-left:1px" (or 2px, 3px, etc.) to the second cell (so that the text doesn't run together, the text in the first cell starts to wrap inexplicably.
<table border="1" cellpadding="0">
<tr>
<td style="width:50%">something a with a little longer text</td>
<td style="width:50%;padding-left:1px;">shorter text</td>
</tr>
</table>
The DOCTYPE is HTML 4.01 Strict.
Reproducible: Always
Steps to Reproduce:
1. View the attachment
2 [review].
3.
Actual Results:
Text in first cell wraps
Expected Results:
Text in first cell does not wrap (IE behavior, for instance).
Attachment #217952 -
Attachment is obsolete: true
Updated•19 years ago
|
Component: General → Layout: Tables
Keywords: testcase
Product: Firefox → Core
QA Contact: general → layout.tables
Version: unspecified → Trunk
Comment 5•18 years ago
|
||
Checking the table in Photoshop shows the right cell to be larger than the left cell by a v couple of pixels despite both being set to 50% sizes.
Apparently, the text wraps because adding a padding style to one cell makes it a little wider (which it shouldn't be doing) by a pixel or two, which makes other cells in the table shorter in turn, which in this case forces the other cell in the table to wrap.
That is a bug in Firefox 2 (Gecko 1.8.x).
However, it's fixed in Firefox 3 (Gecko 1.9.x) and that's why it probaly can't be fixed for Firefox 2.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•