Closed
Bug 102847
Opened 23 years ago
Closed 16 years ago
specified (minimal) width on table cell is not respected
Categories
(Core :: Layout: Tables, defect, P3)
Core
Layout: Tables
Tracking
()
RESOLVED
WONTFIX
Future
People
(Reporter: bugmail, Unassigned)
References
()
Details
(Keywords: css2, testcase, Whiteboard: [CSS 2.1, 17.5.2])
Attachments
(2 files, 4 obsolete files)
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:0.9.4) Gecko/20010913
BuildID: 2001091313
If, in a two-column table, the first cell has a CSS2 'min-width' property set
but has no contents, and the second cell's contents have the CSS2 'white-space:
nowrap" declaration, then the min-width declaration is ignored and the first
table cell is given the lowest possible width.
Reproducible: Always
Steps to Reproduce:
1. Access the attached testcase
Actual Results: The first table cell of Table 1 is displayed with a width
significantly less than the 'mid-width: 200px' CSS2 declaration made on it. This
is caused by the 'white-space: nowrap' declaration on the paragraph in the
second cell.
Observe that Table 2 does not exhibit this problem because it lacks the
'white-space' declaration and so this property inherits a default value of 'normal.'
Expected Results: The first cell of Table 1 should be displayed with a width of
200px as declared.
(Note that the attached testcase also, when resized, exhibits the problem
described in bug 84422.)
Comment 3•23 years ago
|
||
We don't yet support min-width on tables.
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.0
karnaze, is it intentional for cells with specifically defined widths to
collapse when something like 'white-space: nowrap' forces a table wider than the
window?
I guess what I'm asking is, is min-width even the issue here?
Comment 5•23 years ago
|
||
The cell width will not be honored if the table can be made to fit within the
viewport. If min-width were working it would ensure that the width were honored.
Thanks, karnaze. I don't see an bug specifically about implementing
min/max-width/height in tables. Do you know of one? This bug ought to depend on it.
Karnaze, is it intentional to collapse table cells in different rows to
different widths in order to try to fit the table within the viewport? (I'll
attach a testcase.)
Upon further investigation, I believe the problem may be caused by something
else. There appears to be a serious bug in table layout when empty cells are
involved.
In Test Case 2 (to be attached shortly), you'll see a series of 2-by-2 tables
with the upper-left cell empty save for whitespace. Each of the four tables lays
out incorrectly, in that columns of row 1 are not the same width as cells in the
same column of row 2.
Can you verify this, Karnaze? If so, I think I need to change the summary of
this bug.
Reporter | ||
Comment 10•23 years ago
|
||
Karnaze, the problem can also be seen by accessing
[http://greg.tcp.com/mozilla/Apache%20Directory%20Listing/Advanced.html] and
narrowing the window until the table becomes too narrow for the viewport.
Reporter | ||
Comment 11•23 years ago
|
||
Note that if you access Test Case 2 and see the bad layout, then go Back, then
Forward, layout corrects for some reason.
Comment 12•23 years ago
|
||
Greg, you have mentioned a few different things that are separate bugs. But
focusing on the problem about the cells in the same column not being the same
width, I'm not seeing that unless the viewport is shrunk very small. Also, keep
in mind that the doctype on test case 2 is strict, which means that we will
likely render differently than IE and Nav.
Reporter | ||
Comment 13•23 years ago
|
||
karnaze, I'm attaching a screenshot of Test Case 2 as seen using Mac/2001100808.
I'd be interested to know what this looks like on comparable builds on other
platforms. If you can't reproduce on other platforms, perhaps try using a Mac build.
As I mentioned, if you load Test Case 2, then go Back, then Forward, then the
table layout corrects itself.
Reporter | ||
Comment 14•23 years ago
|
||
Comment 15•23 years ago
|
||
I think I've got two cases that exhibit similar behavior if a page is rendered
bad because of width and whitespace issues, then is correct in the back the
forward steps, correct from a cache reload and correct in composer...
see http://store.westerndigital.com/product.asp?sku=1744550 from bug 104012.
and www.tweak3d.net from bug 102800.
both have similar problems that soundlike they may get fixed by this. I see the
bahavior and am currently trying to find the cause.
Do you agree?
Comment 16•23 years ago
|
||
Similar symptoms, but I guess they are not related to this bug. As I find no
code in their pages for either CSS2 items.
Comment 17•23 years ago
|
||
-->alexsavulov
Assignee: karnaze → alexsavulov
Status: ASSIGNED → NEW
Target Milestone: mozilla1.0 → ---
Comment 18•23 years ago
|
||
looks like is working now.
greg:
could you test again with a recent build?
Reporter | ||
Comment 19•23 years ago
|
||
Alexandru, test case 2 now seems to work properly, but test case 1 still
exhibits the problem.
In Table 1, the left, green cell has a min-width of 200px, but since the
paragraph in the right, blue cell has white-space set to nowrap, the mid-width
on the left cell is ignored.
(Is this the desired or intended behavior?)
Comment 20•23 years ago
|
||
testcase1 reveals a case where we emulate an IE quirk (wrong behaviour). even
though it might not be correct, we do that be cause web authors are making use
of that IE "feature". i won't close this bug, but set it to a lower priority
Priority: -- → P3
Target Milestone: --- → Future
Reporter | ||
Comment 21•23 years ago
|
||
Is that something where we'll emulate the bad IE way in Quirks, but do it right
in Standards?
Reporter | ||
Comment 22•23 years ago
|
||
This testcase describes the problem better.
Attachment #51833 -
Attachment is obsolete: true
Attachment #52463 -
Attachment is obsolete: true
Attachment #52643 -
Attachment is obsolete: true
Reporter | ||
Comment 23•23 years ago
|
||
Though there may actually be a problem with min-width, my testcase exhibits a
different fundamental problem, and that is that hard widths on table cells are
ignored when white-space:nowrap comes into play.
Revising Summary to better describe the problem my testcase exhibits. Once it's
fixed, I can take a better look at min-width.
Summary: Applying CSS2 'white-space: nowrap' causes 'min-width' to be ignored in HTML tables → width value on table cells is overridden when white-space:nowrap used in same row
Reporter | ||
Comment 24•23 years ago
|
||
Attachment #91611 -
Attachment is obsolete: true
Comment 25•22 years ago
|
||
->block&inline
Assignee: alexsavulov → block-and-inline
Component: Layout: Tables → Layout: Block & Inline
Depends on: 100604
QA Contact: amar → ian
Comment 26•20 years ago
|
||
In the earlier testcases the 'white-space:nowrap' really just forces a
large minimal width for the right cell. An element with a specified large
'width' achieves the same thing, so the bug has nothing to do with 'nowrap'
per se.
Comment 27•20 years ago
|
||
-> Tables
Assignee: layout.block-and-inline → nobody
Component: Layout: Block and Inline → Layout: Tables
No longer depends on: 100604
OS: MacOS X → All
QA Contact: ian → layout.tables
Hardware: Macintosh → All
Updated•20 years ago
|
Summary: width value on table cells is overridden when white-space:nowrap used in same row → specified (minimal) width on table cell is not respected
Whiteboard: [CSS 2.1, 17.5.2]
Comment 28•20 years ago
|
||
Is there any browser out there that handles this different than we? IE and opera
handle this as we do.
WONTFIX ?
Comment 29•16 years ago
|
||
no opposition -> gone
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•