-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
script: Add support for polygons in HtmlAreaElement::hit_test
#37064
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
Conversation
2b481b5
to
bac9328
Compare
🔨 Triggering try run (#15167451005) for Linux (WPT) |
Test results for linux-wpt from try job (#15167451005): Flaky unexpected result (24)
Stable unexpected results that are known to be intermittent (16)
|
✨ Try run (#15167451005) succeeded. |
I believe there are some HTMLAreaElement WPT tests but they rely on |
bac9328
to
5b16431
Compare
There is a polygon hit_test unittest but that doesn't seem to have been affected. |
Yeah that test has 2 asserts that test for not hitting, and the old code only returned false so of course it passed. It would be good to add some tests that actually test for returning a hit. |
65fa35e
to
bf926e0
Compare
I've added tests that pass. |
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
bf926e0
to
e8577ef
Compare
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
df16ae8
to
be3a644
Compare
HtmlAreaElement::hit_test
Uses raycasting to determine whether point is in polygon
Testing: Added unittest
Fixes: None to my knowledge