Closed
Bug 26695
Opened 25 years ago
Closed 23 years ago
[FLOAT] floated empty <select> confuses tables
Categories
(Core :: Layout: Tables, defect, P4)
Tracking
()
VERIFIED
WORKSFORME
Future
People
(Reporter: dream, Assigned: attinasi)
References
(Blocks 1 open bug, )
Details
(Keywords: css1, testcase, Whiteboard: WORKSFORME?)
Attachments
(2 files)
After some rigorous testing I found that the ALIGN attribute can cause entire
TD's to "hide" their contents. I'm not sure if the ALIGN attribute is actually
to blame, but the bug appeared when the ALIGN attribute was in place but not
when it was absent.
The above page is an example of where I first saw the bug: Wired News. the page
is a stripped down version (ie. extraneous banners and comments removed) but the
bug should be evident. When the page loads, the main table should show its
contents, and then they disappear.
If you play with the source like I did you can see exactly where the bug
happens. If you comment out everything between lines 70 and 254 (I put markers
to indicate where) then the contents will show. Also, if you get rid of the
ALIGN="LEFT" attribute on line 72, all the contents will render perfectly, but
the TD will be beneath the side column.
I tested this on a Win98 box running M13, build ID 2000012520. If you compare
the results of the pages between Mozilla and Communicator (I used 4.6) you can
see exactly how it *should* look and how it *does* look.
Comment 1•25 years ago
|
||
Comment 2•25 years ago
|
||
I think I've seen a similar bug before involving a floated nested table and
assigned it to Kipp's bug list after some analysis.
Assignee: karnaze → kipp
test against my local tree, may already be fixed.
Status: NEW → ASSIGNED
Priority: P3 → P2
Summary: TD contents disappear when using ALIGN → [FLOAT] TD contents disappear when using ALIGN
the only way I can reproduce this is with a select that contains no options.
That's a pretty rare thing, so I'm going to push it off until M18.
Target Milestone: M16 → M18
Right now I'm just seeing the inner table stick out of the outer table. Is this
a table bug? Karnaze? (I could see it being a block bug too...)
Actually, what I'm seeing now is just bug 27997.
Comment 9•24 years ago
|
||
The problem appears to be that the outer table is not taking the inside floated
table-with-form into account when sizing itself around the inner non-floated
table. Or something.
QA: A better testcase would be nice...
-> Future...
Severity: major → minor
QA Contact: chrisd → py8ieh=bugzilla
Whiteboard: (py8ieh:make no-tables testcase if possible)
Target Milestone: M18 → Future
Comment 10•24 years ago
|
||
Nothing's disappearing for me, 2000 091808 (before bug 52663 fix)
Comment 11•24 years ago
|
||
Nothing is disappearing, however the inner table's width should not break out of
the outer table no matter what. I don't care if you set the outer table at a
width of 1. The outer table should size out to whatever the inner table needs
either fit its contents in itself and/or display itself in its stated width.
I'm not sure about all the css rules, but this isn't using css and tables
contain things. Things simply don't break out of the the borders of tables. if
that behavior is needed, a <div> ought to be used. Tables are structural and
should be counted on as such.
Jake
Comment 12•24 years ago
|
||
HTML has no rendering rules.
We are a CSS browser. The CSS table rendering rules are described here:
http://www.w3.org/TR/REC-CSS2/tables.html
We still need a smaller testcase (which I will make, eventually, after N6 RTM,
if no-one else does in the meantime).
Updated•24 years ago
|
Severity: minor → normal
Keywords: qawanted
Priority: P2 → P3
Whiteboard: (py8ieh:make no-tables testcase if possible)
Comment 13•24 years ago
|
||
It appears to be a combination of <select> elements not correct propagating
their size when their parent is floated, and <table> elements not sizing
correctly when they contain nested tables.
New attachment coming up, but it isn't much better than the existing one.
cc'ing rods since I can't get this to happen if I remove the <select> element.
Comment 14•24 years ago
|
||
Comment 15•24 years ago
|
||
It turns out that the bug also happens if the <select> is floated itself -- and
it _doesn't_ happen if the <select> has an options! Could it be that the
<select> misreports its size somewhere when it is empty?
Severity: normal → minor
Keywords: mozilla1.0
Priority: P3 → P4
Summary: [FLOAT] TD contents disappear when using ALIGN → [FLOAT] floated empty <select> confuses tables
Comment 16•24 years ago
|
||
Note that an incremental reflow fixes it (change of font size, for instance).
Comment 17•24 years ago
|
||
Has something changed in this area of the code? It seems to be working now.
Whiteboard: WORKSFORME?
Updated•24 years ago
|
QA Contact: ian → amar
Comment 18•23 years ago
|
||
Build reassigning Buster's bugs to Marc.
Assignee: buster → attinasi
Status: ASSIGNED → NEW
Comment 19•23 years ago
|
||
Resolving WORKSFORME.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•