Skip to content

layout: Fix interaction of margin and stretch size on block-level box inside inline box - #61754

Merged
servo-wpt-sync merged 1 commit into
web-platform-tests:masterfrom
servo:servo_export_47020
Aug 6, 2026
Merged

servo-wpt-sync merged 1 commit into
web-platform-tests:masterfrom
servo:servo_export_47020

Conversation

@servo-wpt-sync

Copy link
Copy Markdown
Collaborator

For the purpose of resolving a stretch size of a block-level in the block axis, sometimes we need to treat margins as zero. The spec said to check a condition on the parent.

However, it wasn't clear what to do inside of an inline formatting context, since the parent is an inline box. Then we were never treating margins as zero.

But in w3c/csswg-drafts#13260 the CSSWG has resolved to check the condition on the containing block.

So this amends #35904 to implement the new resolution.

Testing: Adding a test

Reviewed in servo/servo#47020

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

Copy link
Copy Markdown
Collaborator

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 Servo project.

… inside inline box

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
@servo-wpt-sync
servo-wpt-sync merged commit bfb04e0 into web-platform-tests:master Aug 6, 2026
28 checks passed
@servo-wpt-sync
servo-wpt-sync deleted the servo_export_47020 branch August 6, 2026 11:02
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

Sponsor
SponsoredKunjungi sekarang
Promo