1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:37:35 +00:00

LibWeb: Expose the HTMLElement::{offsetLeft, offsetTop} attributes

These describe the border box of an element relative to their parent.
This commit is contained in:
Idan Horowitz 2021-04-15 20:48:55 +03:00 committed by Andreas Kling
parent c5769a7033
commit 815934a95d
3 changed files with 25 additions and 1 deletions

View file

@ -9,6 +9,9 @@ interface HTMLElement : Element {
[LegacyNullToEmptyString] attribute DOMString innerText;
readonly attribute long offsetTop;
readonly attribute long offsetLeft;
// FIXME: These should all come from a GlobalEventHandlers mixin
attribute EventHandler onabort;
attribute EventHandler onauxclick;