mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:37:45 +00:00
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.
This commit is contained in:
parent
fb4c632309
commit
fb8edcea00
15 changed files with 494 additions and 13 deletions
|
@ -0,0 +1,15 @@
|
|||
#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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue