mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 06:28:13 +00:00
LibWeb: Use NaN safe min() and max() functions to compute DOMQuad bounds
This commit is contained in:
parent
607880cbd3
commit
5136b495a6
3 changed files with 25 additions and 4 deletions
|
@ -32,5 +32,13 @@
|
|||
new DOMPoint(100, 100),
|
||||
new DOMPoint(0, 100)
|
||||
).getBounds());
|
||||
|
||||
// 5. Getting the bounds of a DOMQuad with points set to Infinity
|
||||
testPart(() => DOMQuad.fromRect({
|
||||
x: -Infinity,
|
||||
y: -Infinity,
|
||||
width: Infinity,
|
||||
height: Infinity
|
||||
}).getBounds());
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue