Skip to content

[css-inline-3] [css-box-4] Clarify trimming on nagative values - #14331

Open
jakearchibald wants to merge 2 commits into
mainfrom
jakearchibald/negative-margins
Open

[css-inline-3] [css-box-4] Clarify trimming on nagative values#14331
jakearchibald wants to merge 2 commits into
mainfrom
jakearchibald/negative-margins

Conversation

@jakearchibald

Copy link
Copy Markdown
Contributor

Fixes #14328

@jakearchibald
jakearchibald requested a review from fantasai August 14, 2026 10:55
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[css-inline-3] Does text-box-trim remove negative leading?

1 participant