Closed Bug 629059 Opened 15 years ago Closed 6 months ago

Containing block for absolutely positioned kids of relatively positioned inlines needs to be determined after whitespace trimming

Categories

(Core :: Layout: Positioned, defect)

x86
macOS
defect

Tracking

()

RESOLVED DUPLICATE of bug 489100

People

(Reporter: yves.vangoethem, Unassigned)

References

(Blocks 1 open bug, )

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0b10) Gecko/20100101 Firefox/4.0b10 Build Identifier: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0b10) Gecko/20100101 Firefox/4.0b10 ID:20110121161344 Firefox places an inline element with position absolute badly on the right border of an parent inline element positioned in relative. Reproducible: Always Steps to Reproduce: 1. Ctrl+U 2. 3. Actual Results: The absolute positioned element is placed a little outside the parent. Expected Results: The absolute positioned element should be placed exactly on the right border of the parent element like WebKit and IE do.
The padding is a red herring. What's going on here is that we position the abs pos box before whitespace trimming has happened. Testcase coming up that demonstrates this clearly. Fixing bug 255139 might fix this.
Summary: Wrong right positioning of absolute inline element in relative inline parent → Containing block for absolutely positioned kids of relatively positioned inlines needs to be determined after whitespace trimming
Attached file Testcase —
Status: UNCONFIRMED → NEW
Ever confirmed: true
Yeah I supposed it was due to the white-spaces, still hope it's gonna get a proper fix :) Thanks!
This was fixed in Opera with their latest release, any plans to fix it in Firefox soon? I updated my testcase accordingly.
> any plans to fix it in Firefox soon Unlikely; it needs a pretty wholesale rewrite of how abs pos is handled. That needs to happen anyway, but it's a good bit of work.
Component: Layout: Block and Inline → Layout: R & A Pos
Severity: normal → S3
See Also: 743599 → 489100
Duplicate of this bug: 1964229
Blocks: 1918488

I see the expected behavior with layout.abspos.fragment-aware-inline-cb.enabled=true (introduced in bug 489100). The tiny blue squares are at the top right corner at the red background rectangle. We'll flip the pref by default in bug 2041551.

Status: NEW → RESOLVED
Closed: 6 months ago
No longer depends on: 255139
Duplicate of bug: 489100
Resolution: --- → DUPLICATE
See Also: 489100 →
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: