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

@@ -62,6 +62,9 @@ public:
unsigned natural_width() const;
unsigned natural_height() const;
int x() const;
int y() const;
// https://html.spec.whatwg.org/multipage/embedded-content.html#dom-img-complete
bool complete() const;