The content box is the box in which content can be placed. Generally, a ResizeObserverEntry reports the content box of an element through a property called contentRect, which returns a DOMRectReadOnly object. observe (someElement ) Some details # What is being reported? # var ro = new ResizeObserver ( entries => px ` ) ![]() The callback is passed an array of ResizeObserverEntry objects-one entry per observed element-which contains the new dimensions for the element. You create a ResizeObserver object and pass a callback to the constructor.
0 Comments
Leave a Reply. |