mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:37:46 +00:00
LibWeb: Bring HTMLElement.offset{Left,Top,Parent} closer to spec
(Or rather, bring offsetLeft and offsetTop closer to spec, and implement the previously-missing offsetParent) This makes mouse inputs on https://nerget.com/fluidSim/ work properly.
This commit is contained in:
parent
43e9dc0500
commit
cfe9577b48
5 changed files with 143 additions and 14 deletions
|
@ -37,7 +37,7 @@ interface HTMLElement : Element {
|
|||
// FIXME: [CEReactions] attribute DOMString? popover;
|
||||
|
||||
// https://drafts.csswg.org/cssom-view/#extensions-to-the-htmlelement-interface
|
||||
// FIXME: readonly attribute Element? offsetParent;
|
||||
readonly attribute Element? offsetParent;
|
||||
readonly attribute long offsetTop;
|
||||
readonly attribute long offsetLeft;
|
||||
readonly attribute long offsetWidth;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue