Closed Bug 10497 Opened 25 years ago Closed 25 years ago

{feature} min/max-width and max-height not working for replaced elements

Categories

(Core :: Layout, defect, P3)

x86
Linux
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: dbaron, Assigned: buster)

References

()

Details

Unless I'm missing something, min-width, max-width, and max-height don't seem to be working for replaced elements (at least when display is block, I think inline too). See the above test page, where the sizes of the images should be as described.
The results for positioned elements are slightly different, and I'm not completely sure what's happening, but it's wrong...(unless the test page is wrong).
Test case for heights (not as carefully checked as the one for widths): http://www.fas.harvard.edu/~dbaron/css/test/sec1007b
Assignee: troy → kipp
Assignee: kipp → troy
Assignee: troy → kipp
That's a problem with the block code. You need to apply the min/max values _after_ reflowing the block element if it's replaced
Status: NEW → ASSIGNED
Target Milestone: M11
Target Milestone: M11 → M14
Summary: min/max-width and max-height not working for replaced elements → {feature} min/max-width and max-height not working for replaced elements
Target Milestone: M14 → M17
min/max-width is part of css2 therefore this is a feature request...
QA Contact: petersen → chrisd
So which test case doesn't work? Can you attach a simpler one that demonstrates the precise bug? My testing didn't show a problem otherwise I wouldn't ask.
In the URL in the URL field, http://www.fas.harvard.edu/~dbaron/css/test/sec1004b , almost all of the tests with images fail.
Could you quantify "almost"? Pretty please? It would really help...
If I number the images (and only images!), then the following are NOT failing: 4, 10 (out of 24). But 16, 21, and 22 are failing differently, by clipping instead of resizing. They're among the absolute positioning ones.
gracias
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Fixed. Image elements now properly support min/max width/height. There are probably other elements that don't support them (e.g. form elements). If this is the case, please assign the bug to the correct owner (not me!). Thanks.
Status: RESOLVED → VERIFIED
Verified fixed Linux apprunner 1999-11-12-15-M12. Remaining issues in bug 18477.
You need to log in before you can comment on or make changes to this bug.