Logical Sizing Properties Demo - Online block‑size & inline‑size
Compare width/height with block‑size/inline‑size in different writing modes. Understand intrinsic sizing. Copy best practices.
UD5 Toolkit
I change based on my container's size, not the viewport.
inline-size queries width only; size enables both width and height queries.inline-size establishes a container that supports queries on the inline axis (usually width). size enables queries on both the inline and block (usually height) axes. Use inline-size for most layout cases; size when you need height‑based rules.cqw, cqh, cqi, cqb, cqmin, and cqmax. They are relative to the query container’s size, enabling precise proportional sizing inside components.@container style()) allow styling based on computed values of an ancestor (e.g., custom properties). This feature is still experimental and has very limited browser support at the moment.Compare width/height with block‑size/inline‑size in different writing modes. Understand intrinsic sizing. Copy best practices.
See how scroll‑padding and scroll‑margin affect the position of elements when using anchor links or scroll‑snap. Visual.
Type a few words and see them rendered at every heading size (h1–h6) with your chosen font. Perfect for design systems.
Make an element resizable horizontally, vertically, or both. See the handle and code. Useful for textareas.
Select any element on the test page and monitor its size changes with ResizeObserver. See log of all entries.
Enter length, width, thickness to approximate surfboard volume. Compare to your ideal volume based on weight.
Drag to resize a box and see the Resize Observer callback fire. Get contentRect and borderBoxSize. Learn the API.
Enter item dimensions and find the smallest rectangular box that can fit them (simple packing heuristic). Helps reduce shipping costs. Local algorithm.
Toggle print‑specific styles like removing backgrounds, showing link URLs, and adding page breaks. Generate a complete print stylesheet instantly.
Enter image pixel dimensions and compute maximum print size at various DPI. With aspect ratio presets (4x6, 5x7, 8x10) and cropping preview. Local tool.
Apply will‑change to any element and see its effect on compositing. Learn best practices for smooth animations.
Find out how large you can print based on image resolution in pixels. Understand DPI and megapixels.
Enter two tire sizes and see a side‑by‑side comparison of diameter, width, and speedometer error. Local math.
Enter megapixels and desired DPI to see the maximum print size without upscaling. Quick quality check.
Estimate board feet of spray foam needed for a cavity. Compare closed‑cell and open‑cell.
Add print styles like removing backgrounds, adding page breaks, setting margins. See print preview instantly.
Enter baby's weight in lbs or kg to see suggested diaper sizes across major brands. General reference, no data collected.
Knit a swatch, measure before and after felting, and let this tool calculate the shrink percentage. Plan your felted projects accurately.
Enter head circumference to get crown diameter and length. Perfect fit top‑down hats.
Calculate the appropriate hide box dimensions based on your reptile’s length and girth. A snug hide reduces stress and promotes natural behavior.
Demonstrate how to add custom headers and POST‑like functionality to EventSource using a polyfill. Code and example.
Enter viewing distance to get the minimum readable print font size. Design posters and signs.
Generate a Lit Element web component skeleton with styles and properties. Copy and start coding immediately.
Select bird species and toy type to see potential hazards and size recommendations.
Paste a raster image and an SVG, see the file size and rendering time. Understand when to use vector. Local.
Estimate body fat percentage using neck, waist, hip (if female) measurements. Supports US Navy, Covert Bailey, and 3-site skinfold methods. No data sent to server.
See how Trusted Types prevents unsafe HTML assignment. Test against injected scripts. Modern security practice.
Enter current ball size and target to find approx rubber bands required. Fun and satisfying.
Estimate filament usage: enter weight or length and get the remaining value plus cost. PLA/ABS density reference. Local calculation.
Request HID devices and list them. Read input reports and send output. For custom hardware and controllers.