Skip to content

[Gecko Bug 2042572] Teach nsCSSFrameConstructor::GetAbsoluteContainingBlock() the concept of IB-split.#60270

Merged
moz-wptsync-bot merged 1 commit into
masterfrom
gecko/2042572
May 29, 2026
Merged

[Gecko Bug 2042572] Teach nsCSSFrameConstructor::GetAbsoluteContainingBlock() the concept of IB-split.#60270
moz-wptsync-bot merged 1 commit into
masterfrom
gecko/2042572

Conversation

@moz-wptsync-bot
Copy link
Copy Markdown
Collaborator

The bug happens when we reconstruct the abspos element inside the IB-split
block-wrapper where the inline element is an absolute containing block.

In GetAbsoluteContainingBlock(), when absPosCBCandidate is the
MozBlockInsideInlineWrapper, redirect the candidate to the first IB-split
sibling that is the absolute containing block. Otherwise, the function will
continue going up the parent chain until it finds nsCanvasFrame (the initial
containing block).

Differential Revision: https://phabricator.services.mozilla.com/D303124

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=2042572
gecko-commit: 8d22130515adcd36a9faa02509c5674e42c80354
gecko-commit-git: 071f7c450fe92d36be470f88ad486648e218c4d1
gecko-reviewers: dholbert, layout-reviewers

… of IB-split.

The bug happens when we reconstruct the abspos element inside the IB-split
block-wrapper where the inline element is an absolute containing block.

In `GetAbsoluteContainingBlock()`, when `absPosCBCandidate` is the
`MozBlockInsideInlineWrapper`, redirect the candidate to the first IB-split
sibling that is the absolute containing block. Otherwise, the function will
continue going up the parent chain until it finds `nsCanvasFrame` (the initial
containing block).

Differential Revision: https://phabricator.services.mozilla.com/D303124

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=2042572
gecko-commit: 8d22130515adcd36a9faa02509c5674e42c80354
gecko-commit-git: 071f7c450fe92d36be470f88ad486648e218c4d1
gecko-reviewers: dholbert, layout-reviewers
Copy link
Copy Markdown
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Firefox project.

@moz-wptsync-bot moz-wptsync-bot merged commit d2c4bd8 into master May 29, 2026
28 checks passed
@moz-wptsync-bot moz-wptsync-bot deleted the gecko/2042572 branch May 29, 2026 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants