mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
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:
committed by
Jelle Raaijmakers
parent
52781cc2fd
commit
79a427e1ef
Notes:
github-actions[bot]
2026-01-10 23:34:04 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/79a427e1ef9 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7408 Reviewed-by: https://github.com/gmta ✅
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user