Blocked ideas, tested: a picker in a scene, PDF pages, cross-origin pictures, a popover, a permission button and an overscroll drawer
Six ideas from the backlog were marked as blocked by the browser. Each one is tried here anyway. Every section runs the blocked route and the routes that could stand in for it, in the browser that opens the page, and says which of them worked. A route that reads pixels waits for a tap on its Measure button.
Customisable select with the picker in the scene
A select at the top chooses the colour of the sail. Its picker opens in the top layer. On the panel below it is the same list as a list box, drawn sheared by the canvas. Tap a row on the panel, then open the select.
- The picker of a customisable select, drawn by the canvas
- Not measured yet. Tap the button.
- A list box (
size="5") drawn sheared, taking taps - No choice made on the panel yet.
The picker is in the top layer, and a canvas draws only its own children. A list box has no picker: its rows are in its own picture. /select/ takes a third route and draws the options itself from select.options inside the picker.
Show the code
PDF pages as a book
Two pages of one PDF file as the pages of an open book: page 1 in an <embed>, page 2 in an <iframe>. The file is fetched when you tap the button, because a browser with no PDF viewer may offer to download it.
<embed type="application/pdf">in a drawable block- Not measured yet. Tap the button.
<iframe>with the PDF as its document- Not measured yet. Tap the button.
The PDF viewer is a separate document that the page can't read, like a frame from another origin, so the expectation is blank paper. Chrome has no API that turns a PDF page into pixels for a page. A site that needs this ships a PDF renderer written in JavaScript and draws into its own canvas.
Show the code
Cross-origin image wall
Nine pictures. The first row is from this origin. The other two rows are the same files from a second origin. Row 3 asks for them with the crossorigin attribute and row 2 does not.
- Row 2: a picture from a second origin
- Not measured yet. Tap Measure.
- Row 3: the same with
crossorigin="anonymous"and a CORS header - Not measured yet. Tap Measure.
A drawable canvas is never tainted. Instead, a picture the page may not read is left out of the element's picture, and the canvas is told nothing. The page can still work it out from the URL and the attribute, and it draws the alt text on a hatched card in those places. The wall isn't blocked when the other server sends Access-Control-Allow-Origin.
Show the code
Popover drawn into the canvas
A warning card that hangs from a string in the canvas. Tap beside it to push it. The button moves it to the top layer as a popover, where the browser draws it. Closing the popover drops it back on its string.
- An open popover that is a child of the canvas, drawn with
drawElementImage() - Not measured yet. Tap Measure.
- The same element with no
popoverattribute, drawn and taking taps - The button on the card hasn't been tapped yet.
An element is in the top layer or in the canvas, not both. The same element can change home: the attribute is removed to draw it and set to show it over everything. /top-layer/ draws tooltips, a dialog and toasts this way, and /popovers/ keeps real popovers anchored to buttons drawn in perspective.
Show the code
Permission button in a scene
Two <geolocation> buttons. The canvas draws the first one. The second lies over the canvas. The ring round each is solid when the browser says it would accept a tap. Move or turn the second one and watch its ring.
- A permission button drawn by the canvas
- Waiting for the browser's answer.
- A permission button outside the canvas, positioned over it
- Waiting for the browser's answer.
A permission button works only if the browser can be sure the person saw it as it is: not covered, not distorted, not just moved. A picture of it in a canvas fails that test by design, even drawn flat at full size. The route that works keeps the button out of the canvas and draws the scene round it.
Show the code
A drawer on the overscroll area
A ship's log in a list that scrolls. Scroll to the end and keep pulling up: a drawer of older entries rises from the bottom, and opens if you pull far enough. With a mouse, scroll the wheel past the end.
- CSS
overscroll-area - Waiting.
- The pull measured by the page from touch and wheel events
- No pull has opened the drawer yet.
With no overscroll-area the browser gives the page no number for how far a scroller was pulled past its end. Touch events keep arriving while the list scrolls and after it stops at its end, so the page takes the finger's travel from that moment as the pull. overscroll-behavior: contain keeps the pull from scrolling the page.
Show the code
How it works
Each demo is a canvas with content="drawable" whose children are ordinary elements. A demo starts when its section comes near the screen. The paint handler draws the elements with drawElementImage() and draws everything else with canvas calls.
A measurement that needs pixels runs after a tap. It copies the canvas into a plain 2D canvas with drawImage() and reads single pixels from the copy. The permission buttons and the overscroll property need no pixels: the browser reports them.
Show the code
Live checks
These run on their own fixtures, after a tap.
Findings
Measured in headless Chromium 157 on 2026-11-22. Not yet run on a phone.
- Picker in the scene: blocked. With the picker of a customisable select open over the canvas, 0 of 15 points on its rows had the picker's colour in the canvas. A list box (
size="5") drawn with a shear took a touch tap on a row, and the element under a sheared row was itsoption. - PDF pages: not measured where it matters. The test browser has no PDF viewer (
navigator.pdfViewerEnabledis false): 0 of 192 points on each page had the colour of the PDF, the embed drew only its "Couldn't load plugin" text, and a tap in the middle of each page landed on the embed and the iframe. The button measures a browser that has a viewer. - Cross-origin pictures: blocked without CORS, not blocked with it. Three pictures from a second origin loaded and 0 of 3 were in the canvas (alpha 0). The same files with
crossorigin="anonymous"and anAccess-Control-Allow-Originheader: 3 of 3 (alpha 255). Loading row 2 again with the attribute changed it from 0 to 3. - Popover: blocked.
drawElementImage()of an open popover that is a child of the canvas threwInvalidStateErrorand 0 of 9 points had its colour. The same element with the attribute removed was drawn swinging, and its button took a tap. The open popover was shown on the screen at the place the canvas last gave it (71, 62 from the canvas corner, whereupdateElementGeometry()had put it), not in the middle of the window. - Permission button: blocked inside the canvas, works over it. The drawn
<geolocation>reportedisValidfalse, withintersection_out_of_viewport_or_clippedin the demo andintersection_occluded_or_distortedin the live check. The one positioned over the canvas reported true, went false (intersection_changed) for under 1.6 s after it was moved, and stayed true when turned 4 degrees. A tap on it, with the permission granted to the test browser, gave a position. - Overscroll drawer:
CSS.supports('overscroll-area', '--drawer')is false. The page's own measure works by touch: a drag of 120 px past the end of the list read as a pull of 103 px, opened the drawer on release, and didn't scroll the page. - One
contextlostevent stops the six canvases and shows the elements as plain HTML. Tested by dispatching the event. - Not verified: Chrome 159 on Android for all six, and a desktop Chrome with a PDF viewer.