1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 23:47:45 +00:00

LibWeb: Start implementing the Element scroll attributes

These are required for hit testing the document in Google Docs. If they
aren't defined, the Google Docs hit test code will add undefined to
certain values, causing them to turn into NaN. This causes NaNs to
propagate through their hit test code, which eventually makes it
infinitely loop.
This commit is contained in:
Luke Wilde 2022-11-05 15:10:13 +00:00 committed by Andreas Kling
parent 6b0152e150
commit a268026e4e
4 changed files with 264 additions and 0 deletions

View file

@ -63,6 +63,10 @@ interface Element : Node {
DOMRect getBoundingClientRect();
DOMRectList getClientRects();
attribute unrestricted double scrollTop;
attribute unrestricted double scrollLeft;
readonly attribute long scrollWidth;
readonly attribute long scrollHeight;
readonly attribute long clientTop;
readonly attribute long clientLeft;
readonly attribute long clientWidth;