mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:47:44 +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:
parent
6b0152e150
commit
a268026e4e
4 changed files with 264 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue