Closed Bug 101926 Opened 23 years ago Closed 23 years ago

width % should be calculated as relative to the containing block

Categories

(Core :: Layout, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 97695

People

(Reporter: caillon, Assigned: attinasi)

References

()

Details

Attachments

(1 file)

This is possibly a dupe, but I couldn't find one.

The URL above has the bad practice of using a bunch of <img height=40 width=20%>
for their navbar. But instead of calculating each image's width as 20% of the
containing block, we calculate the width as 20% of ununsed space.

This is on Linux 2001092608-trunk. I will attach a screenshot.
NSCP renders this fine.  adding 4xp keyword.  (I think this is a regression, but
not sure.  Leaving regression keyword off for now)
Keywords: 4xp
The HTML 4.01 spec says of percentage image widths "Note that lengths expressed 
as percentages are based on the horizontal or vertical space currently 
available," a rather ambiguous definition.  However, CSS width (which applies to 
replaced elements) says that percentages are calculated in terms of the 
containing block.  Since HTML width="" is supposed to be replaced by the CSS 
equivalent, the change (fix?) proposed here makes sense...
I knew I saw this already filed.  Bug 97695.  Duping to it.

*** This bug has been marked as a duplicate of 97695 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: