Skip to content

[flex-balance] Add additional negative margin test.#59918

Merged
chromium-wpt-export-bot merged 1 commit into
masterfrom
chromium-export-34b3660957
May 16, 2026
Merged

[flex-balance] Add additional negative margin test.#59918
chromium-wpt-export-bot merged 1 commit into
masterfrom
chromium-export-34b3660957

Conversation

@chromium-wpt-export-bot
Copy link
Copy Markdown
Collaborator

When performing line-breaking we should be clamping the hypothetical
main size as zero, but not anything else.

https://drafts.csswg.org/css-flexbox-2/#algo-balance
"""
For the purpose of this algorithm, a flex item’s size is its outer
hypothetical main size, floored at 0.
"""

We do this, but add a test checking the flexing behaviour still works
without clamping to zero.

Bug: 416755656
Change-Id: Ia6932aec537d5a994728a4f09042986dde5111c8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7851530
Reviewed-by: David Grogan <dgrogan@chromium.org>
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1631556}

When performing line-breaking we should be clamping the hypothetical
main size as zero, but not anything else.

https://drafts.csswg.org/css-flexbox-2/#algo-balance
"""
  For the purpose of this algorithm, a flex item’s size is its outer
  hypothetical main size, floored at 0.
"""

We do this, but add a test checking the flexing behaviour still works
without clamping to zero.

Bug: 416755656
Change-Id: Ia6932aec537d5a994728a4f09042986dde5111c8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7851530
Reviewed-by: David Grogan <dgrogan@chromium.org>
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1631556}
Copy link
Copy Markdown
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot merged commit 27f34ce into master May 16, 2026
27 checks passed
@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-34b3660957 branch May 16, 2026 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants