Repository navigation
layout: Don't use quirky block size for determining margin collapse - #49617
Merged
Merged
Conversation
|
🔨 Triggering try run (#41931849576) for Linux (WPT) |
Collaborator
|
🤖 Opened new upstream WPT pull request (web-platform-tests/wpt#64777) with upstreamable changes. |
|
Test results for linux-wpt from try job (#41931849576): Flaky unexpected result (21)
Stable unexpected results that are known to be intermittent (6)
|
|
✨ Try run (#41931849576) succeeded. |
When determining whether a block container that doesn't establish a BFC would collapse its margins through, or collapse the bottom margin with the bottom margin of the contents, we need to check whether the height is intrinsic. To do so, it was convenient to just check the containing block established for the contents. However, quirks mode can override that. Therefore, pass around the original block size before the quirk took effect. This also avoids the need to especially handle anonymous blocks, that was previously necessary because they don't establish a containing block. Signed-off-by: Oriol Brufau <[email protected]>
Loirooriol
force-pushed
the
percentage-quirk-fix-2
branch
from
November 5, 2026 07:50
e4cb0dd to
b9b6827
Compare
Collaborator
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#64777). |
mrobinson
approved these changes
Nov 5, 2026
5 of 7 tasks
sageliem
pushed a commit
to sageliem/servo
that referenced
this pull request
Nov 6, 2026
…ervo#49617) When determining whether a block container that doesn't establish a BFC would collapse its margins through, or collapse the bottom margin with the bottom margin of the contents, we need to check whether the height is intrinsic. To do so, it was convenient to just check the containing block established for the contents. However, quirks mode can override that. Therefore, pass around the original block size before the quirk took effect. This also avoids the need to especially handle anonymous blocks, that was previously necessary because they don't establish a containing block. Testing: Adding a test Signed-off-by: Oriol Brufau <[email protected]>
This was referenced Nov 7, 2026
Loirooriol
added a commit
to Loirooriol/servo
that referenced
this pull request
Nov 9, 2026
…ervo#49684) Fixes a regression from servo#49617, I forgot to use the block size that includes the quirk for intrinsic sizing. Testing: Adding a test Fixes: servo#49683 Signed-off-by: Oriol Brufau <[email protected]>
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.
When determining whether a block container that doesn't establish a BFC would collapse its margins through, or collapse the bottom margin with the bottom margin of the contents, we need to check whether the height is intrinsic.
To do so, it was convenient to just check the containing block established for the contents. However, quirks mode can override that.
Therefore, pass around the original block size before the quirk took effect. This also avoids the need to especially handle anonymous blocks, that was previously necessary because they don't establish a containing block.
Testing: Adding a test