LibWeb: Implement HTMLImageElement x() and y() getters

These attributes get the image's top left border edge  relative to the
root element's origin.

These methods ignore any transforms.
This commit is contained in:
Tim Ledbetter
2026-01-10 00:06:19 +00:00
committed by Jelle Raaijmakers
parent 52781cc2fd
commit 79a427e1ef
Notes: github-actions[bot] 2026-01-10 23:34:04 +00:00
9 changed files with 142 additions and 8 deletions

View File

@@ -47,7 +47,7 @@ interface HTMLImageElement : HTMLElement {
[CEReactions, LegacyNullToEmptyString, Reflect] attribute DOMString border;
// https://drafts.csswg.org/cssom-view/#extensions-to-the-htmlimageelement-interface
[FIXME] readonly attribute long x;
[FIXME] readonly attribute long y;
readonly attribute long x;
readonly attribute long y;
};