ladybird/Userland/Libraries/LibWeb/ResizeObserver/ResizeObserverEntry.idl
Aliaksandr Kalenik fb8edcea00 LibWeb: Flesh out implementation of ResizeObserver interfaces
Adds the initial implementation for interfaces defined in the
ResizeObserver specification. These interfaces will be used to
construct and send observation events in the upcoming changes.
2024-02-20 10:55:10 +01:00

16 lines
772 B
Plaintext

#import <Geometry/DOMRectReadOnly.idl>
#import <DOM/Element.idl>
// https://drafts.csswg.org/resize-observer-1/#resize-observer-entry-interface
[Exposed=Window]
interface ResizeObserverEntry {
readonly attribute Element target;
readonly attribute DOMRectReadOnly contentRect;
// FIXME: Return FrozenArray<ResizeObserverSize> instead of any.
[ImplementedAs=border_box_size_js_array] readonly attribute any borderBoxSize;
// FIXME: Return FrozenArray<ResizeObserverSize> instead of any.
[ImplementedAs=content_box_size_js_array] readonly attribute any contentBoxSize;
// FIXME: Return FrozenArray<ResizeObserverSize> instead of any.
[ImplementedAs=device_pixel_content_box_size_js_array] readonly attribute any devicePixelContentBoxSize;
};