Closed Bug 419072 Opened 17 years ago Closed 17 years ago

incorrect hypothetical box right with asymmetric containing block border

Categories

(Core :: Layout: Positioned, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9beta4

People

(Reporter: dbaron, Assigned: dbaron)

References

Details

(Keywords: regression)

Attachments

(1 file, 1 obsolete file)

Attached patch patch (obsolete) — Splinter Review
I caught this while writing a reftest for bug 403328. That bug actually regresses some cases due to this bug because it switches when we use mLeft vs mRight, so I want to land this at the same time. In any case, nsHTMLReflowState::CalculateHypotheticalBox does the wrong thing when adjusting for the border of the absolute positioning containing block. mRight is relative to the left edge, so it should adjust it by the left border, but instead it adjusts it by the right border. This will be tested in my reftest for bug 403328.
Attachment #305051 - Flags: superreview?(roc)
Attachment #305051 - Flags: review?(roc)
> I caught this while writing a reftest for bug 403328. That bug actually > regresses some cases due to this bug because it switches when we use mLeft vs > mRight, so I want to land this at the same time. Not sure whether you noticed - I landed 403328 a few hours ago (with a reftest based on my testcase for that bug).
(I landed the reftests in question as layout/reftests/box-properties/abspos-* .)
Attached patch patchSplinter Review
Same as previous, plus changes to reftest.list.
Attachment #305051 - Attachment is obsolete: true
Attachment #305373 - Flags: superreview?(roc)
Attachment #305373 - Flags: review?(roc)
Attachment #305051 - Flags: superreview?(roc)
Attachment #305051 - Flags: review?(roc)
This mistake was introduced in the patch on bug 135082.
Blocks: 135082
Attachment #305373 - Flags: superreview?(roc)
Attachment #305373 - Flags: superreview+
Attachment #305373 - Flags: review?(roc)
Attachment #305373 - Flags: review+
Comment on attachment 305373 [details] [diff] [review] patch Low risk change to fix position used for some absolute positioning cases (most common in RTL documents) where the containing block has asymmetric borders.
Attachment #305373 - Flags: approval1.9?
Comment on attachment 305373 [details] [diff] [review] patch a1.9+=damons
Attachment #305373 - Flags: approval1.9? → approval1.9+
Checked in to trunk.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: