mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
23 lines
722 B
Text
23 lines
722 B
Text
#import <DOM/Element.idl>
|
|
|
|
// https://drafts.csswg.org/resize-observer-1/#resize-observer-interface
|
|
[Exposed=(Window)]
|
|
interface ResizeObserver {
|
|
|
|
constructor(ResizeObserverCallback callback);
|
|
undefined observe(Element target, optional ResizeObserverOptions options = {});
|
|
undefined unobserve(Element target);
|
|
undefined disconnect();
|
|
|
|
};
|
|
|
|
enum ResizeObserverBoxOptions {
|
|
"border-box", "content-box", "device-pixel-content-box"
|
|
};
|
|
|
|
dictionary ResizeObserverOptions {
|
|
ResizeObserverBoxOptions box = "content-box";
|
|
};
|
|
|
|
// https://drafts.csswg.org/resize-observer-1/#resize-observer-callback
|
|
callback ResizeObserverCallback = undefined (sequence<ResizeObserverEntry> entries, ResizeObserver observer);
|