Element Resize Detector - Online Monitor Size Changes
Select any element on the test page and monitor its size changes with ResizeObserver. See log of all entries.
UD5 Toolkit
Resize a target element to see logs
box option specifies which CSS box model to observe. 'content-box' (default) watches only the content area. 'border-box' watches the entire box including padding and border. 'device-pixel-content-box' provides dimensions in device pixels (useful for canvas rendering on high-DPI screens). Try switching modes in this playground to see the difference!observer.observe(element) for each target. The callback receives an array of entries, one per changed element. This is more efficient than creating separate observers for each element.observer.unobserve(element) to stop watching a specific element, or observer.disconnect() to stop observing all elements at once. It's good practice to disconnect observers when they're no longer needed (e.g., in component cleanup) to prevent memory leaks.observe() is called, providing the current dimensions of the element. This is useful because you always get an initial size reading without needing separate measurement code. You can see this behavior in the playground — logs appear as soon as observation starts.Select any element on the test page and monitor its size changes with ResizeObserver. See log of all entries.
Make an element resizable horizontally, vertically, or both. See the handle and code. Useful for textareas.
Enter piece count and piece size to estimate finished dimensions. Check if it fits your table.
Enter baby's weight in lbs or kg to see suggested diaper sizes across major brands. General reference, no data collected.
Compress and decompress text using the browser's native Compression Streams API. See the binary output size.
Query the permission state of camera, microphone, geolocation, and more. See the response and learn the API.
Unified input demo: see pressure, tilt, and type from any pointer. Compare pointerType values. Essential for drawing apps.
Toggle a screen wake lock to prevent the device from dimming or sleeping. See the lock state and learn the API.
Write a compute shader in WGSL and run it in the browser. See the output on a canvas. Learn WebGPU. Real‑time compilation.
Decode an image progressively using the ImageDecoder API. See partial results and metadata. Modern alternative to <img>.
Decode individual video frames from a local file using the VideoDecoder API. Step through frames. Cutting‑edge browser feature.
Experiment with the Federated Credential Management API. Simulate a sign‑in flow without third‑party cookies. Privacy‑first.
Request HID devices and list them. Read input reports and send output. For custom hardware and controllers.
Request permission and detect when the user is idle (away from keyboard). See screen lock state. For native‑like apps.
Demonstrate how the Web OTP API automatically reads one‑time codes from SMS (mobile). Simulation with a fake SMS input.
Acquire and release locks across tabs. Prevent race conditions in IndexedDB or localStorage. Visual queue and lock state.
Connect a gamepad and see all button presses and axis movements visually. Check that every input is detected correctly.
Trigger different vibration patterns on mobile devices. Test if your phone supports haptic feedback. Simple demo.
See your device's battery level, charging status, and discharge time using the Battery Status API. Fun utility.
Check current screen orientation and test the lock API. Useful for mobile web apps. Demo with code.
Test the new HTML popover attribute for creating accessible tooltips, menus, and dialogs without JavaScript. Copy code snippets.
Experiment with the Async Clipboard API: read/write text and images from the clipboard. Verify permissions and see demo code.
Test the Web Share API by sharing text, links, and files directly from the browser. Check compatibility and see example code.
Predict the file size of an image based on pixel dimensions and format (JPEG, PNG, WebP). Rough estimate. Local.
Enter an API URL and quickly check its HTTP status code and response time. See response headers and body. Browser fetch.
Enter two tire sizes and see a side‑by‑side comparison of diameter, width, and speedometer error. Local math.
Pick a method, URL, headers, and body, then send an HTTP request directly from your browser. Debug APIs easily.
Reduce your HTML file size by stripping whitespace, comments, and optional closing tags. Secure browser‑based.
Experiment with CSS Grid properties visually. Add rows, columns, and areas. See the grid in action and copy the code.
Generate random JSON data with customizable fields (users, products, orders). Useful for frontend mocking. All local.