position:absolute and margin-left:auto doubles right margin

RESOLVED FIXED in mozilla1.9beta4

Status

()

RESOLVED FIXED
11 years ago
11 years ago

People

(Reporter: dbaron, Assigned: dbaron)

Tracking

Trunk
mozilla1.9beta4
Points:
---
Bug Flags:
blocking1.9 +
in-testsuite +

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments)

This is a regression from bug 300030 that I found while writing a testcase for bug 403328.  I changed availMarginSpace so it already has the margins subtracted (which helped make the overconstrained case easier to fix).  However, I forgot to not subtract it again.

Steps to reproduce: load testcase
Expected results: blue box centered within border (as it is in Firefox 2, Opera, Safari)
Actual results: blue box left-aligned (we're doubling the right margin)
(I landed the reftests in question as layout/reftests/box-properties/abspos-* .)
Attachment #305030 - Flags: superreview?(roc)
Attachment #305030 - Flags: superreview+
Attachment #305030 - Flags: review?(roc)
Attachment #305030 - Flags: review+
Fix checked in to trunk.
Status: ASSIGNED → RESOLVED
Last Resolved: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9beta4
You need to log in before you can comment on or make changes to this bug.