Repository navigation
layout: Fix interaction of margin and stretch size on block-level box inside inline box - #61754
Merged
servo-wpt-sync merged 1 commit intoAug 6, 2026
Merged
Conversation
wpt-pr-bot
approved these changes
Aug 5, 2026
wpt-pr-bot
left a comment
Collaborator
There was a problem hiding this comment.
The review process for this patch is being conducted in the Servo project.
servo-wpt-sync
force-pushed
the
servo_export_47020
branch
from
August 6, 2026 08:22
8226831 to
7e8b933
Compare
… inside inline box Signed-off-by: Oriol Brufau <obrufau@igalia.com>
servo-wpt-sync
force-pushed
the
servo_export_47020
branch
from
August 6, 2026 08:55
7e8b933 to
1051e06
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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