19) Resize to Fit

19) Resize to Fit

Drag the bottom-right of the box to match the goal size (±10px tolerance).
layoutresize observer
Target
Box: — | Goal: — | Try it

How it works: Display a random goal size and watch the resizable box using ResizeObserver.

Learning outcomes: reading layout sizes, tolerance checks, observers.