mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:07:46 +00:00
LibWeb: Stub out a basic ResizeObserver interface
This patch establishes scaffolding for the ResizeObserver API.
This commit is contained in:
parent
5c9ca5c2dc
commit
fdc1c15064
7 changed files with 121 additions and 1 deletions
17
Userland/Libraries/LibWeb/ResizeObserver/ResizeObserver.idl
Normal file
17
Userland/Libraries/LibWeb/ResizeObserver/ResizeObserver.idl
Normal file
|
@ -0,0 +1,17 @@
|
|||
[Exposed=(Window)]
|
||||
interface ResizeObserver {
|
||||
|
||||
// FIXME: This should be a ResizeObserverCallback.
|
||||
constructor(any callback);
|
||||
undefined observe(Element target, optional ResizeObserverOptions options = {});
|
||||
undefined unobserve(Element target);
|
||||
undefined disconnect();
|
||||
|
||||
};
|
||||
|
||||
dictionary ResizeObserverOptions {
|
||||
|
||||
// FIXME: This should be an enum.
|
||||
DOMString box = "content-box";
|
||||
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue