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

* Use nan-safe comparison in DOMQuad::GetBounds

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

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Update WPT expectations

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

---------

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
Simon Wülker 2024-10-11 04:43:44 +02:00 committed by GitHub
parent f15da16da4
commit fc2c77be83
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 52 additions and 54 deletions

View file

@ -1,4 +0,0 @@
[DOMQuad-001.html]
[fromRect() method on DOMQuad with Infinity: bounds]
expected: FAIL

View file

@ -1,25 +0,0 @@
[DOMQuad-nan.html]
[Setting DOMQuad's p1.x to NaN]
expected: FAIL
[Setting DOMQuad's p2.y to NaN]
expected: FAIL
[Setting DOMQuad's p2.x to NaN]
expected: FAIL
[Setting DOMQuad's p4.x to NaN]
expected: FAIL
[Setting DOMQuad's p3.x to NaN]
expected: FAIL
[Setting DOMQuad's p3.y to NaN]
expected: FAIL
[Setting DOMQuad's p4.y to NaN]
expected: FAIL
[Setting DOMQuad's p1.y to NaN]
expected: FAIL