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)
Tracking
()
People
(Reporter: caillon, Assigned: attinasi)
References
()
Details
Attachments
(1 file)
66.26 KB,
image/png
|
Details |
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.
Reporter | ||
Comment 1•23 years ago
|
||
Reporter | ||
Comment 2•23 years ago
|
||
NSCP renders this fine. adding 4xp keyword. (I think this is a regression, but not sure. Leaving regression keyword off for now)
Keywords: 4xp
Comment 3•23 years ago
|
||
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...
Reporter | ||
Comment 4•23 years ago
|
||
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.
Description
•