mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 03:37:35 +00:00
LibWeb: Implement document.elementsFromPoint
This API seems to be used by WPT for sending synthetic input events. Implementing the naive translation of elementFromPoint to the spec steps for this algorithm turns 4 'tests had errors unexpectedly' and 3 'tests had timeouts unexpectedly' into 1 pass and 7 'tests had unexpected subtest results' on the infrastructure/ subdirectory of WPT.
This commit is contained in:
parent
e7daa02bf2
commit
6a0fe08604
5 changed files with 104 additions and 0 deletions
|
@ -121,6 +121,7 @@ interface Document : Node {
|
|||
|
||||
// https://drafts.csswg.org/cssom-view/#extensions-to-the-document-interface
|
||||
Element? elementFromPoint(double x, double y);
|
||||
sequence<Element> elementsFromPoint(double x, double y);
|
||||
};
|
||||
|
||||
dictionary ElementCreationOptions {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue