mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
fb8edcea00
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.
16 lines
772 B
Plaintext
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;
|
|
};
|