Closed Bug 204169 Opened 21 years ago Closed 21 years ago

Height property for tables does not work correctly into a layer

Categories

(Core :: Layout: Tables, defect)

x86
Windows 98
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: raulpomon, Unassigned)

References

()

Details

(Keywords: compat)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4b) Gecko/20030429 Mozilla Firebird/0.6
Build Identifier: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4b) Gecko/20030429 Mozilla Firebird/0.6

If we have a web page with a main table into a layer "<div align=center>" for
example, with height="100%", and we have three rows and second row with
height="100%", the table does not fit to the height of the window, and Internet
Explorer fits the table. It's correctly?

Reproducible: Always

Steps to Reproduce:
1.
2.
3.

Actual Results:  
The next table should fit into the window:
<div align="center">
<table width="100%" height="100%">
<tr>
	<td>Top cell</td>
</tr>
<tr>
	<td height="100%">Middle cell fits in Explorer</td>
</tr>
<tr>
	<td>Bottom cell</td>
</tr>
</table>
</div>

If we quit <div> tag the table fits to window, but not with <div> tag.
*** Bug 204170 has been marked as a duplicate of this bug. ***
Width is a deprecated attribute for table headers and data cells but not for the
table itself.
See:
http://www.w3.org/TR/html4/struct/tables.html#h-11.2.1
http://www.w3.org/TR/html4/appendix/notes.html#h-B.5.1.1
Invalid? I shall leave this alone for now.
I meant height instead of width.
Keywords: compat
Hmm, I wonder if this bug is a dupe of bug 10212 ("Height: 100% does not work
when nesting tables"). Same issue (table inside <div>) is mentioned there in
comment #12.
Component: Browser-General → Layout: Tables
Ah, the div has no height set - so the 100% height set to the table is
ignored... Dupe of bug 41656?
->default contacts
Assignee: asa → table
QA Contact: asa → madhur
this has been fixed by the checkin for bug 222730
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: