Closed
Bug 44502
Opened 24 years ago
Closed 24 years ago
Percentage on 'width' incorrect for replaced elements
Categories
(Core :: Layout, defect, P3)
Core
Layout
Tracking
()
M18
People
(Reporter: bert, Assigned: waterson)
References
()
Details
(Keywords: css2, regression)
The CSS rule img { width: 100% } doesn't make the image as wide as the parent element, but has the same effect as 'width: auto'. It appears that the percentage is (erroneously) computed relative to the intrinsic size, rather than the parent's size. Here is a test page: http://www.w3.org/Style/Examples/005/width-test.html (See http://www.w3.org/TR/REC-CSS2/visudet.html#propdef-width)
Comment 1•24 years ago
|
||
Confirmed in Mac 2000070311 build.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 2•24 years ago
|
||
This is a regression introduced by Buster on May 13 21:46 in layout/html/base/ src/nsHTMLImageLoader.cpp version 1.25 in order to fix bug 38396. If you remove the additional test on line 277, it works. Reassigned to Waterson.
Assignee: pierre → waterson
Component: Style System → Layout
Keywords: css2,
regression
OS: Linux → All
Hardware: PC → All
Assignee | ||
Updated•24 years ago
|
Er... buster basically just turned % widths off. There's another bug on this. *** This bug has been marked as a duplicate of 39901 ***
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
For images, that is.
You need to log in
before you can comment on or make changes to this bug.
Description
•