Repository navigation
layout: Fix interaction of margin and stretch size on block-level box inside inline box - #47020
Merged
Merged
Conversation
|
🔨 Triggering try run (#31008637646) for Linux (WPT) |
Collaborator
|
🤖 Opened new upstream WPT pull request (web-platform-tests/wpt#61754) with upstreamable changes. |
|
Test results for linux-wpt from try job (#31008637646): Flaky unexpected result (45)
Stable unexpected results that are known to be intermittent (15)
|
|
✨ Try run (#31008637646) succeeded. |
Loirooriol
marked this pull request as ready for review
August 5, 2026 13:51
mrobinson
approved these changes
Aug 5, 2026
Loirooriol
force-pushed
the
block-in-inline-stretch-margins
branch
from
August 6, 2026 08:17
11d0d2d to
9461e99
Compare
Loirooriol
enabled auto-merge
August 6, 2026 08:17
Collaborator
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#61754). |
… inside inline box Signed-off-by: Oriol Brufau <obrufau@igalia.com>
Loirooriol
force-pushed
the
block-in-inline-stretch-margins
branch
from
August 6, 2026 08:50
9461e99 to
e37516d
Compare
Collaborator
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#61754). |
RichardTjokroutomo
pushed a commit
to RichardTjokroutomo/servo
that referenced
this pull request
Oct 6, 2026
… inside inline box (servo#47020) 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 servo#35904 to implement the new resolution. Testing: Adding a test Signed-off-by: Oriol Brufau <obrufau@igalia.com>
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