mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +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:
parent
c5769a7033
commit
815934a95d
Notes:
sideshowbarker
2024-07-18 20:17:53 +09:00
Author: https://github.com/IdanHo
Commit: 815934a95d
Pull-request: https://github.com/SerenityOS/serenity/pull/6352
3 changed files with 25 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue