From https://drafts.csswg.org/resize-observer/#resizeobservation
interface ResizeObservation {
constructor(Element target);
readonly attribute Element target;
readonly attribute ResizeObserverBoxOptions observedBox;
readonly attribute FrozenArray<ResizeObserverSize> lastReportedSizes;
};
But the constructor actually has an optional observedBox parameter:
new ResizeObservation(target, observedBox)
- Let this be a new ResizeObservation object
- Set this internal target slot to target
- Set this internal observedBox slot to observedBox
- Set this internal lastReportedSizes slot to [(0,0)]