Closed Bug 323459 Opened 19 years ago Closed 18 years ago

IMG height 100% does not work anymore in XHTML 1.0 Transitional

Categories

(Firefox :: General, defect)

1.5.0.x Branch
x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: tdanard, Unassigned)

References

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5

The value of the height attribute in images does not work when a XHTML 1.0 Transitional doctype is specified. When this doctype is removed, it works. This problem DID NOT OCCUR with Firefox 1.0.x

I have attached the files (when it works and when it doesn't) to this bug so that you can see by yourself. 

Reproducible: Always

Steps to Reproduce:
1. extract the attached zip file
2. view file "showmethisfirefoxbug.htm"
3. view file "showmewhenthisworks.htm"

Actual Results:  
The images on the side of "Useful Links" are not 100%

Expected Results:  
They should be 100%, just like Firefox 1.0.x did

IE doesn't have this problem.
Attached file Test case
Version: unspecified → 1.5 Branch
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20060114 Firefox/1.5 ID:2006011403

Can confirm this.
I'm pretty sure this is a dupe of something, and is invalid. Perhaps see bug 292759; it might be relevent.
Whiteboard: DUPEME
(In reply to comment #3)
> I'm pretty sure this is a dupe of something, and is invalid. Perhaps see bug
> 292759; it might be relevent.

The test case shows that the behavior of Firefox was changed with Firefox 1.5, contredicting the meaning of the "Transitional" keyword in the "XHTML 1.0 Transitional" standard.

What would be the "XHTML 1.0 Transitional" way of achieving the intended "legacy" result ?

I have downloaded Mozilla Deer Park Alpha 2. The problem has not been resolved.
The behavior in Firefox 1.5 is correct per the CSS spec.
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → INVALID
The bug is not fixed. 
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
I didn't mark it fixed.  I marked it invalid, because it's not a bug -- it's the right behavior.  Don't reopen it again, please.
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago18 years ago
Resolution: --- → INVALID
I disagree with that statement. I'll leave that bug closed to avoid a status war. The correct behavior is not explicitely defined in the W3C standard. Since the document uses XHTML 1.0 Transitional, it should keep the legacy behavior that Firefox 1.0 already respects. For a constructive discussion, please document the W3C standards that justified that change so that I can stand corrected.

> The correct behavior is not explicitely defined in the W3C standard.

Actually, it is as long as we're treating the "height" attribute of <img> as a presentational attribute (per CSS 2.1).  Given this one assumption, this gives a specified value of "100%" for the 'height' property of the <img>.  But the computed value for the parent (the <td>) is "auto", so per CSS 2.1 the computed height of the <img> is "auto".  That is, the behavior must be identical to not having the height property set at all.

If you think that the "height" attribute for an image should not be a CSS presentational attribute, that would be a valid change request, but probably wontfix, given that Gecko is a CSS renderer that mostly handles HTML via a UA stylesheet and CSS.

Note also that as far as comment 0's "IE does not have this problem" thing goes, IE's treatment of CSS percentage heights is generally pretty broken.
Whiteboard: DUPEME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: