Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use NaN-safe comparisons in DOMQuad::GetBounds #33794

Merged
merged 2 commits into from
Oct 11, 2024
Merged

Conversation

simonwuelker
Copy link
Contributor

This fixes the behaviour of DOMQuad::GetBounds when some of the coordinates are NaN.

This results in 9 new WPT passes, mostly in css/geometry/DOMQuad-nan.html.ini

try run


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • There are tests for these changes

This fixes at least the following WPT test:
* css/geometry/DOMQuad-nan.html

Signed-off-by: Simon Wülker <[email protected]>
Signed-off-by: Simon Wülker <[email protected]>
Copy link
Member

@jdm jdm left a comment

Choose a reason for hiding this comment

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

Nice!

@jdm jdm added this pull request to the merge queue Oct 11, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 11, 2024
@jdm jdm added this pull request to the merge queue Oct 11, 2024
Merged via the queue into servo:main with commit fc2c77b Oct 11, 2024
14 checks passed
@simonwuelker simonwuelker deleted the domquad branch October 11, 2024 09:41
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.

2 participants