Skip to content

layout: Use f64 when blending table content sizes - #61530

Merged
servo-wpt-sync merged 1 commit into
web-platform-tests:masterfrom
servo:servo_export_46775
Jul 26, 2026
Merged

layout: Use f64 when blending table content sizes#61530
servo-wpt-sync merged 1 commit into
web-platform-tests:masterfrom
servo:servo_export_46775

Conversation

@servo-wpt-sync

Copy link
Copy Markdown
Collaborator

It seems that f32 doesn't have enough precision to prevent hitting our
floating point error limit when blending content sizes during table
layout. This change makes more calculations use f64 preventing a debug
assertion from firing.

Testing: This change adds a WPT crash test.
Fixes: #46774.

Reviewed in servo/servo#46775

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

Copy link
Copy Markdown
Collaborator

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 Servo project.

It seems that `f32` doesn't have enough precision to prevent hitting our
floating point error limit when blending content sizes during table
layout. This change makes more calculations use `f64` preventing a debug
assertion from firing.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
@servo-wpt-sync
servo-wpt-sync merged commit 631dbaa into web-platform-tests:master Jul 26, 2026
25 of 26 checks passed
@servo-wpt-sync
servo-wpt-sync deleted the servo_export_46775 branch July 26, 2026 14:04
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