Closed
Bug 85052
Opened 23 years ago
Closed 23 years ago
IMG and TD sizes not respected.
Categories
(Core :: Layout: Tables, defect)
Tracking
()
People
(Reporter: morten, Assigned: karnaze)
References
()
Details
When you set an explicit size on WIDTH/HEIGHT in
TD fields, these do not get respected ie. the TD
field is allowed to change size.
When an image gets assigned a percentage in HEIGHT
when within a TD, these do not get displayed.
http://www.it-c.dk/~morten/mozilla/
Comment 1•23 years ago
|
||
height=... for <TD> is deprecated, see
http://www.w3.org/TR/html401/struct/tables.html#h-11.2.6 .
Should Mozilla support this, or is this INVALID?
Comment 2•23 years ago
|
||
Mozilla processes the example page in quirks mode. Quirks mode not working as it
should is still a bug. On the other hand, quirks mode was set up to reflect the
way Netscape 4 did things, and Netscape 4 I believe has that same problem. So
maybe that's a feature, of sorts.
Comment 3•23 years ago
|
||
TABLE & TD do not support the height element in HTML 4.0.
Images, according to the HTML specs should strech with percentage dimensions.
This bug be valid in that case.
http://www.w3.org/TR/html4/struct/objects.html#h-13.7.1
Images properly stretch with percentage widths in table cells (they stretch to
the percentage of the width of the cell), but they do not accept a percentage
height (they simply don't show up. This may be a result of Mozilla considering
the height of the cell to be 0, perhaps, and making any percentage of 0, simply
be zero?
Comment 4•23 years ago
|
||
Further note, style="height: 100%;" caused the image not to appear was well.
Comment 6•23 years ago
|
||
This is bug 74313. The other half is invalid as stated, please keep your bug
reports to one bug at time. Thanks for contributing to Mozilla.
*** This bug has been marked as a duplicate of 74313 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Comment 7•23 years ago
|
||
I'm not comfortable with leaving this as a duplicate. After looking at bug
74313, I don't see any relation to tables. Perhaps you could explain what
makes this a dup? In this case the image, outside of a TD will actually scale
correctly to a percentage height. It's being inside a TD, where presumably,
Mozilla is seeing any percentage of 0 pixels as (rightly so) zero.
This might have to do more with table rendering than images.
You need to log in
before you can comment on or make changes to this bug.
Description
•