Closed
Bug 217006
Opened 22 years ago
Closed 21 years ago
Last floated cell is pushed to the next line
Categories
(Core :: Layout: Tables, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: pplwong, Unassigned)
References
()
Details
(Keywords: regression, testcase)
Attachments
(1 file)
2.12 KB,
text/html
|
Details |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5b) Gecko/20030822
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5b) Gecko/20030822
Please look at the table at http://zh.openoffice.org/downloads.html#zh-win (the
top table at id="zh-win").
um.. well, though you may not know Chinese, you should still be able to notise
that the 3 subtitles are messed together (the words in blue). They should be in
3 diff columns.
The table looks OK in Mozilla 1.4 and IE6.
Reproducible: Always
Steps to Reproduce:
Comment 1•22 years ago
|
||
Due to td.zhContent td.dlTitle {float: left;} in
http://zh.openoffice.org/css/menuStyle.css
Comment 2•22 years ago
|
||
Isnt this what David Hyatt mentions in
http://weblogs.mozillazine.org/hyatt/archives/2003_08.html#003909 ?
Comment 3•22 years ago
|
||
Comment 4•22 years ago
|
||
Confirming bug, 2003-08-19-05 trunk Linux.
Bug does not occur in Mozilla 1.4 Linux.
The computed width is correct for the cells but the last one is still pushed
to the next line.
Assignee: other → table
Status: UNCONFIRMED → NEW
Component: Layout → Layout: Tables
Ever confirmed: true
Keywords: regression,
testcase
QA Contact: ian → madhur
Summary: Table is not rendered correctly → Last floated cell is pushed to the next line
Reporter | ||
Comment 5•22 years ago
|
||
I've just changed the CSS on that page.
It's true that it's because of my poor css.
Thanks for reminding
Reporter | ||
Comment 6•21 years ago
|
||
Invalid
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
Comment 7•21 years ago
|
||
Pui-Lam, this bug report tracks a bug in Mozilla, not wether you have fixed
your site or not. Reopening.
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Reporter | ||
Comment 8•21 years ago
|
||
Oh, sorry about this.
Comment 9•21 years ago
|
||
This bug has OS:Linux. The testcase also shows the problem using Mozilla
2004031616 on Windows 2000.
![]() |
||
Comment 10•21 years ago
|
||
This is indeed invalid. Table cells have 1px padding on them, so they do not in
fact fit in this case. Removing the padding makes them all show on one line.
Status: REOPENED → RESOLVED
Closed: 21 years ago → 21 years ago
Resolution: --- → INVALID
Comment 11•21 years ago
|
||
Hmm, all the tables in the testcase have cellpadding="0". Note also that the TDs
are float:left and thus blocks and not table-cells. I suppose there will be
an anonymous cell created but shouldn't cellpadding="0" cover that too?
![]() |
||
Comment 12•21 years ago
|
||
Table cell (or rather td/th) padding comes from the following rules in html.css:
227 td {
...
231 padding: 1px;
232 }
233
234 th {
...
238 padding: 1px;
239 }
Since, as you pointed out, floating makes them not be table cells, the
cellpadding attribute doesn't affect them. But the style rule is matching on
tag, so it still applies to them. So you just have floating blocks with 25%
width and 1px paddings.
![]() |
||
Comment 13•21 years ago
|
||
Hmm... Actually, something else is up. Just floating them shouldn't make
cellpadding not apply given how our code is (incorrectly) set up...
![]() |
||
Comment 14•21 years ago
|
||
Oh, I see. "cellpadding" only affects cells with display:table-cell.
Comment 15•21 years ago
|
||
Maybe it would be better to use something like:
*|*::-moz-table-cell { padding:1px; ... }
Then the %-cases would actually work since they take half of the content width
of the anonymous cell.
![]() |
||
Comment 16•21 years ago
|
||
That would apply the padding to anonymous cells only, then, not to td/th. And
we _don't_ want to be applying it to anonymous cells, in fact.
You need to log in
before you can comment on or make changes to this bug.
Description
•