Document PiP - Interactive Lab | IconVault
Open a real Document Picture-in-Picture window with live HTML: stopwatch, mirrored note, themes. Free, runs fully in your browser.
Document PiP
Custom HTML picture-in-picture windows
Document Picture-in-Picture is not supported in this browser.
It needs Chrome or Edge 116 and later on desktop. Firefox and Safari do not implement it yet, so the demo below cannot run here.
5 of 5 free PiP windows left.
Note that mirrors into PiP
Every keystroke is written into the live PiP document. The PiP window is a real separate window with its own document, styles and scripts.
How it works: documentPictureInPicture.requestWindow() opens a blank always-on-top window and hands you its document. You build any HTML inside it, like this lab does with the stopwatch and the mirrored note.
Unlike video PiP, document PiP keeps full interactivity: forms, buttons and live updates all keep working while the main tab is in the background.
About this tool
IconVault's Document PiP playground calls the real `documentPictureInPicture.requestWindow()` API: a floating always-on-top window opens with live HTML inside it, a running stopwatch, and a note that mirrors every keystroke you type on the main page. You control the window size and theme, and everything is built with the actual PiP document object. It is free and runs fully in your browser.
You will learn how document PiP differs from video PiP (full interactive HTML instead of one video element), how to inject styles into the PiP document, how to keep it updated from timers and events, and how `pagehide` tells you when the user closes it. Where the API is missing (Firefox, Safari), the tool says so plainly instead of faking a window.
Frequently asked questions
Popular searches
More tools
Algorithm Visualizer
Watch sorting and searching animate step by step
Alt Text Helper
Write better image alt text with live feedback
ARIA Reference
Searchable ARIA roles and attributes guide
Array Visualizer
Step through map, filter, reduce like a debugger
Coming soon
CLI
Coming soon
Figma plugin
Coming soon
VS Code extension
Coming soon
Chrome extension
Coming soon
AI icon generator
Coming soon
Team workspaces
Coming soon