CSS Box Reflect Generator - Online WebKit Mirror Effect
Create a reflection effect for images or text using boxâreflect. Adjust direction and offset. Copy the CSS.
UD5 Toolkit
Interactive Shadow DOM Playground â experiment with <slot> elements, named slots, and fallback content
| Slot Name | Assigned Content | Status |
|---|---|---|
| Edit templates to see slot assignments | ||
slot="name" attribute in Light DOM to target named slots. Content without a slot attribute goes to the default slot <slot></slot>.
Shadow DOM provides encapsulation for Web Components, isolating styles and markup from the main document.
Slots (<slot>) act as placeholders within the shadow DOM that allow light DOM content (content outside the shadow root)
to be projected into specific positions. This creates a composition model where the component defines structure (shadow DOM)
and the consumer provides content (light DOM).
Named slots use the name attribute (e.g., <slot name="header">) and are targeted by light DOM elements
with matching slot attributes (e.g., <div slot="header">).
The default slot has no name attribute and catches all light DOM content that doesn't specify a slot attribute.
If no default slot exists, unmatched light DOM content is not rendered.
Fallback content is placed directly inside a <slot> element. It displays only when no corresponding light DOM content
is projected into that slot. For example: <slot name="footer">Default Footer</slot> will show "Default Footer"
unless the user provides a <footer slot="footer">...</footer> element.
Yes, but with limitations. Use the ::slotted() pseudo-element inside shadow DOM styles to target slotted content.
For example: ::slotted(span) { color: red; } styles <span> elements projected into slots.
However, ::slotted() only affects top-level slotted nodes â nested children cannot be directly styled from the shadow DOM.
Light DOM styles from the main document also apply to slotted content.
Nested slots occur when a slotted element is itself a custom element with its own shadow DOM containing slots. The browser resolves slot assignments recursively: outer slots are assigned first, then inner slots within the projected content. This enables powerful composition patterns but requires careful planning of the slot hierarchy.
Shadow DOM (v1) and <slot> are supported in all modern browsers: Chrome 53+, Firefox 63+,
Safari 10+, and Edge 79+. Internet Explorer does not support Shadow DOM.
For legacy browser support, consider using polyfills like @webcomponents/webcomponentsjs.
Without any <slot> elements, the shadow DOM is fully encapsulated and light DOM content is not displayed.
The component renders only its internal shadow DOM structure. This is useful for self-contained components that don't need external content projection,
like a fully self-contained chart widget or icon component.
Create a reflection effect for images or text using boxâreflect. Adjust direction and offset. Copy the CSS.
Click any element on a demo page and see which events are attached. Visual debugger for event handling.
Generate a Lit Element web component skeleton with styles and properties. Copy and start coding immediately.
Select any HTML element on a page and capture its screenshot. Download as PNG. Perfect for bug reports. JavaScript API demo.
Turn your browser screen into a fullâcolor flashlight or strobe. Adjust brightness and color. Simple utility.
Count total DOM nodes on the current page and show warnings if limits exceed best practices. Keep the DOM lean.
Adjust opacity visually with a slider and see the different CSS representations (opacity property vs RGBA/HSLA). Copy best option.
Enter a URL and generate a responsive iframe embed code with correct aspect ratio. Supports YouTube, maps, and more.
Paste HTML and see a before/after comparison of minified output. Check the byte savings. All local.
Change the text input cursor color. See the effect live. Copy the minimal CSS. Simple but delightful.
Compare :focus and :focusâvisible styling. See which one applies when using mouse vs. keyboard. Accessible focus management.
See a comprehensive table of which modern web APIs your current browser supports. Includes WebGPU, AVIF, and more.
Paste a user agent string to get a human-readable breakdown of browser, operating system, and device. See your own current agent info automatically.
Play an audio file or use mic to see realâtime frequency bars. Choose colors. Great for music videos. Canvas.
Drag a virtual ruler across your screen to measure pixel distances. Horizontal and vertical guides. Useful for UI designers checking alignment.
Record your screen, window, or tab with audio directly in the browser. Download the recording as a WebM file. No upload.
Record your screen, window, or tab with audio directly in the browser. Download as WebM. No extension required.
See your website inside iframes at multiple breakpoints simultaneously. Sideâbyâside responsive testing.
Spin a colorful wheel that lands on Yes, No, or custom answers. Includes sound effects and adjustable probability. Local fun decision maker.
Set your birth date and see a live countdown with days, hours, minutes, and seconds. Shareable link. Pure frontend.
Test your browser's builtâin speech recognition. Speak and see the transcribed text appear live. Mustâhave for voice app devs.
Request a USB device and communicate with it using the Web USB API. See vendor and product IDs. Experimental.
Paste your speech, set time limit, and practice with a pacing indicator (words per minute). Refine delivery.
Virtual flip coins thousands of times and see the heads/tails ratio converge to 50%. Interactive law of large numbers.
Click buttons to play real animal sounds: lion roar, bird tweet, dolphin click. Studio recorded. No load.
Combine TTS with text highlighting. See each word colored as it is spoken. For eâlearning content creation. Local.
Assign Secret Santa pairings from a list of names with spouse/partner exclusions. Optionally email results via mailto link. Fully local, no server.
Convert pixel values to viewportârelative units (vw, vh, vmax, vmin) for a specified breakpoint. Includes DVH and SVH. Essential for fluid layouts.
Hear text spoken word by word with boundary events. See the exact index and character. Advanced TTS dev tool.
Paste robots.txt content and parse it to check validity, find disallowed paths. Educational SEO tool. Local processing.