Picture‑in‑Picture Tester - Online Float Video Anywhere
Open a test video in Picture‑in‑Picture mode. Control entering and leaving PiP. Copy the code snippet for your own app.
UD5 Toolkit
CSS Shapes allow web designers to create sophisticated, non-rectangular layouts.
The shape-outside property defines a shape around which adjacent inline content wraps.
When combined with shape-margin, you can control the spacing between the shape and the
flowing text. For image-based shapes, shape-image-threshold determines which pixels
contribute to the shape based on their alpha channel transparency. A lower threshold includes more
semi-transparent pixels, resulting in a larger exclusion zone. A higher threshold only counts nearly
opaque pixels, creating a tighter wrap. This technique is especially useful for magazine-style layouts,
pull quotes, drop caps, and any design where text needs to flow around irregular visual elements.
Experiment with the sliders to see how these properties interact in real time. Notice how the text
responds dynamically to changes in margin distance and alpha threshold values. Modern browsers including
Chrome, Firefox, Safari, and Edge all provide excellent support for CSS Shapes, making them production-ready
for creative web typography and layout design.
shape-margin?shape-margin defines the outer margin of a CSS shape, creating extra space between the shape boundary and the surrounding inline content. It accepts length values (px, em, rem, %) and works with all shape-outside types including circle(), ellipse(), polygon(), inset(), and image-based shapes.
shape-image-threshold do?This property sets the alpha channel threshold used when extracting a shape from an image. Pixels with alpha above the threshold become part of the shape (text is excluded); pixels below are treated as transparent (text can flow in). Values range from 0 (only fully transparent pixels excluded) to 1 (only fully opaque pixels included).
shape-image-threshold with CSS gradients?Yes! Modern browsers support using CSS gradients (linear-gradient, radial-gradient, conic-gradient) as shape-outside values. The shape-image-threshold works with these gradients since they generate alpha channel data, just like raster images.
shape-margin affect the element's box model?No. shape-margin only affects the shape used for text wrapping. It does not impact the element's CSS box model, border, padding, or regular margin. Think of it as an invisible buffer zone around the shape that pushes text further away.
shape-outside and clip-path?shape-outside controls how inline content flows around an element without affecting its visual rendering. clip-path visually clips the element's content. They can be combined: use shape-outside for text wrapping and clip-path to visually trim the element to match.
CSS Shapes (Level 1) are supported in all modern browsers: Chrome 37+, Firefox 62+, Safari 8+, Edge 79+. The shape-image-threshold property has identical support. For production use, always test across target browsers, especially when using image-based shapes.
Open a test video in Picture‑in‑Picture mode. Control entering and leaving PiP. Copy the code snippet for your own app.
Combine aspect‑ratio with min‑/max‑width/height and see how the box responds. Understand sizing constraints. Copy the pattern.
Create a responsive box that maintains a specific aspect ratio using the aspect‑ratio property. Copy the simple CSS.
Drag a virtual ruler across your screen to measure pixel distances. Horizontal and vertical guides. Useful for UI designers checking alignment.
Browse the OKLCH color space with sliders for lightness, chroma, and hue. See the CSS oklch() code. Modern and accessible.
Paste media queries and see a visual indicator of which rules apply at current viewport size.
Toggle image‑rendering: auto, pixelated, crisp‑edges on a scaled image. Essential for pixel art display.
Experiment with CSS container queries in a live editor. Resize the container and see styles change based on its width/height. Learn modern responsive.
Add customizable padding to any image. Make it square or fit a specific aspect ratio by adding whitespace. Download padded PNG.
Upload a small pixel art image and get a CSS grid layout that recreates it using divs. Novelty developer tool.
Upload an image at multiple widths and generate a complete <picture> or <img srcset> snippet. Modern web performance.
Add a decorative rectangular border/frame to your image. Adjust width, color, and shadow. Download the framed photo.
Predict the file size of an image based on pixel dimensions and format (JPEG, PNG, WebP). Rough estimate. Local.
Resize an image to exact dimensions and add colored padding to fill the aspect ratio without cropping. Useful for profile grids.
An on‑screen ruler that measures in pixels, centimeters, and inches. Drag to resize. Handy for UI designers and developers.
Compare break‑all, keep‑all, and overflow‑wrap: anywhere/break‑word. Paste long words and see how they wrap.
Automatically crop transparent or solid‑color borders from any image. Just drop the photo and get the tight crop.
Write a media query and instantly see if it matches your current viewport. Width, height, orientation, and more.
Interactively apply CSS filter functions (blur, brightness, contrast, etc.) to an image and copy the resulting filter property. No coding required.
Crop images into rectangular or circular shapes with interactive handles. Output as PNG or JPEG. A simple, browser-based tool with no uploads required.
Upload an image and see a slider comparison of different JPEG quality levels. Find the optimal file size vs. quality trade‑off.
Paste a media query and instantly check for syntax errors. See if it's correctly formed. Quick developer tool.
Write a media query and see if it matches as you resize the iframe. Understand width, height, and resolution queries.
Compare your image as JPEG, PNG, and WebP side by side at different quality levels. See the size savings visually.
Upload multiple sizes of the same image and generate the complete srcset and sizes attributes. For perfect responsive performance.
Test the new style() function inside @container to query custom property values. Revolutionary component‑based responsive design.
Toggle between light and dark mode for a demo page. See how to use the media query. Copy the pattern.
Upload one image and see it encoded in AVIF, WebP, and JPEG XL side‑by‑side. Compare quality and file size in your browser.
Increase or decrease the color saturation of your photo with a slider. Preview instantly. Download the edited image. Canvas‑based.
Resize and crop an image to a specific aspect ratio (1:1, 16:9…) with automatic fit/cover. Download the perfect image.