Skip to content

ResizeObserver

Generated from idl/resize-observer.webidl when the site was built at 7aa23e2.

ResizeObserver is an interface in idl/resize-observer.webidl, exposed in Window. What it does is on MDN; this page says what niso has of it.

The web features its members belong to, each with its Baseline status on the web and how much of the feature’s WPT suite passes in niso (see Web platform support).

Feature On the web In niso Members
Resize observer Widely available Partial 53% 68 of 127 subtests pass 5
constructor
constructor(ResizeObserverCallback callback);
int32_t niso_resize_observer_new(niso_dom* dom, niso_resize_observer_callback_fn callback_fn, void* callback_userdata, niso_drop_fn callback_drop, niso_handle* out);
operation
undefined observe(Element target, optional ResizeObserverOptions options = {});
int32_t niso_resize_observer_observe(niso_dom* dom, niso_handle self, niso_handle target, const niso_resize_observer_options* options);
operation
undefined unobserve(Element target);
int32_t niso_resize_observer_unobserve(niso_dom* dom, niso_handle self, niso_handle target);
operation
undefined disconnect();
int32_t niso_resize_observer_disconnect(niso_dom* dom, niso_handle self);