mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
22 lines
572 B
Plaintext
22 lines
572 B
Plaintext
#import <DOM/Element.idl>
|
|
|
|
[Exposed=(Window)]
|
|
interface ResizeObserver {
|
|
|
|
constructor(ResizeObserverCallback callback);
|
|
undefined observe(Element target, optional ResizeObserverOptions options = {});
|
|
undefined unobserve(Element target);
|
|
undefined disconnect();
|
|
|
|
};
|
|
|
|
callback ResizeObserverCallback = void (sequence<ResizeObserverEntry> entries, ResizeObserver observer);
|
|
|
|
enum ResizeObserverBoxOptions {
|
|
"border-box", "content-box", "device-pixel-content-box"
|
|
};
|
|
|
|
dictionary ResizeObserverOptions {
|
|
ResizeObserverBoxOptions box = "content-box";
|
|
};
|