Closed Bug 10395 Opened 21 years ago Closed 21 years ago
min/max-width should cause margin recalculation for positioned elements
If min/max-width causes the width to change (CSS2 10.4), the margins need to be recalculated (CSS2 10.3.7). Right now this is not happening for absolutely positioned elements. See the above test page. (I still need to test this for replaced elements and for height.) And, for the record, troy caught this bug.
BTW, I know for a fact that min/max handling of positioned replaced elements is broken. I noticed that the other day when I was testing for this problem
Test case for heights (not as carefully checked as the one for widths): http://www.fas.harvard.edu/~dbaron/css/test/sec1007b
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Summary: min/max-width should cause margin recalculation → min/max-width should cause margin recalculation for positioned elements
Okay, I changed the summary to reflect that this bug applies to positioned elements. If there are problems with block-level elements in the flow, then please create a separate bug. I fixed the problem with positioned elements where if min/max value causes the width/height to change then the margins need to be recalculated I also added min/max support for replaced positioned elements. That was missing all together
Fixed in the July 30th build.
You need to log in before you can comment on or make changes to this bug.