[css-inline-3] [css-box-4] Clarify trimming on nagative values - #14331
Open
jakearchibald wants to merge 2 commits into
Open
[css-inline-3] [css-box-4] Clarify trimming on nagative values#14331jakearchibald wants to merge 2 commits into
jakearchibald wants to merge 2 commits into
Conversation
jakearchibald
added a commit
to web-platform-tests/wpt
that referenced
this pull request
Aug 14, 2026
Covers the clarification in w3c/csswg-drafts#14331 that margin-trim truncates margins adjacent to the trimmed edges to zero whether they are positive or negative, including descendant margins collapsed with them. See w3c/csswg-drafts#14328
jakearchibald
added a commit
to web-platform-tests/wpt
that referenced
this pull request
Aug 14, 2026
Covers the clarification in w3c/csswg-drafts#14331 that negative half-leading is trimmed as well as positive: when the specified text-box-edge metric falls outside the corresponding edge of the line box, the content edge moves outward to match it, increasing the logical height of the box. See w3c/csswg-drafts#14328
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.
Fixes #14328