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.
Status
Section titled “Status”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 |
Members
Section titled “Members”constructor
Section titled “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);observe()
Section titled “observe()”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);unobserve()
Section titled “unobserve()”undefined unobserve(Element target);int32_t niso_resize_observer_unobserve(niso_dom* dom, niso_handle self, niso_handle target);disconnect()
Section titled “disconnect()”undefined disconnect();int32_t niso_resize_observer_disconnect(niso_dom* dom, niso_handle self);