Skip to content

flexbox: absorb f32 rounding when breaking items into flex lines - #1319

Open
rdeaton wants to merge 1 commit into
DioxusLabs:mainfrom
rdeaton:fix/flex-wrap-fit-tolerance
Open

rdeaton wants to merge 1 commit into
DioxusLabs:mainfrom
rdeaton:fix/flex-wrap-fit-tolerance

Conversation

@rdeaton

@rdeaton rdeaton commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Test cases derived and written with AI assistance (Claude Code).

Changelog entry copied for convenience:

  • Flexbox: absorb f32 rounding errors when breaking items into flex lines (greedy and flex-wrap: balance), using the same tolerance as the float fit checks. A wrapping container sized to the max-content sum of its items (e.g. a flex-wrap: wrap flex item) could previously wrap its last item, because the line-breaking loop adds the same sizes in a different order and can exceed that sum by an ulp.

Test cases derived and written with AI assistance (Claude Code).

This branch has not been deployed

No deployments
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.

1 participant