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

RESOLVED FIXED in mozilla1.9beta4

Status

()

Core
Layout: R & A Pos
RESOLVED FIXED
10 years ago
10 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)

(Assignee)

Description

10 years ago
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)
(Assignee)

Comment 1

10 years ago
Created attachment 305028 [details]
testcase
Assignee: nobody → dbaron
Status: NEW → ASSIGNED
(Assignee)

Comment 2

10 years ago
Created attachment 305030 [details] [diff] [review]
patch
Attachment #305030 - Flags: superreview?(roc)
Attachment #305030 - Flags: review?(roc)
(Assignee)

Comment 3

10 years ago
(I landed the reftests in question as layout/reftests/box-properties/abspos-* .)
Flags: blocking1.9+
Attachment #305030 - Flags: superreview?(roc)
Attachment #305030 - Flags: superreview+
Attachment #305030 - Flags: review?(roc)
Attachment #305030 - Flags: review+
(Assignee)

Comment 4

10 years ago
Fix checked in to trunk.
Status: ASSIGNED → RESOLVED
Last Resolved: 10 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.