1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:57:46 +00:00

LibWeb: Stub out a basic ResizeObserver interface

This patch establishes scaffolding for the ResizeObserver API.
This commit is contained in:
Andreas Kling 2021-10-11 00:18:07 +02:00
parent 5c9ca5c2dc
commit fdc1c15064
7 changed files with 121 additions and 1 deletions

View 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";
};