Old and odd elements: font, marquee, xmp, blink, a foreign iframe and a footer

Five ideas from the element catalogue about elements at the edges of HTML: the presentational elements of the 1990s, <xmp>, names the parser does not know, a frame from another origin, and a footer used as a floor. Each demo asks what the element gives a canvas to draw, and what the canvas has to find out some other way.

Old web page in a drawn monitor

A page written with <center>, <font>, <big>, <tt> and <marquee>, drawn on the tube of a monitor: bulged, lined and glowing. The button on the page works. Turn the power off and the picture shrinks to a line.

Welcome to my home page
You are visitor 000042 This page is under construction. New tide tables every Saturday. Mail the webmaster. Best viewed at 640 by 480 in 256 colours
Links

All five elements still lay out and paint, and the marquee still scrolls by itself. Each of its steps raises a paint event on the canvas, which is the only clock of this demo. The tube is drawn in full 12 times a second, and a copy of the last full frame is put back on the events in between.

Show the code
  1. The page: one drawable block of 1990s markup.
  2. Draw the page once, copy it, and build the tube from the copy.
  3. Styles.

xmp as a literal code sample

The dark box is an <xmp> element. Its content is markup, and it shows it as text. The box under it is the same text parsed as HTML. Tap the dark box and type: the copy follows, and the canvas colours each tag as it appears.

<h3>Tide <em>table</em></h3> <p>High at <b>four</b>, low at <mark>ten</mark>.</p> <button>A real button</button>

An <xmp> can't hold a <span>, so the usual way to colour code is closed. The colours here are rectangles the canvas paints under the element's picture, taken from a Range over each tag in its text.

Show the code
  1. The markup is written once, unescaped, inside the xmp.
  2. Find the tags, paint their rectangles, draw both elements.

Unknown elements in a design system audit

A paragraph from a page that has collected some odd elements. Press the button: a line passes down the paragraph, and each element it finds that shouldn't be there is outlined and named.

Summer sale: new prices on every chart and tide table. Members get a gold badge and big savings, shown on each £12 label, says the RNLI shop.

Every one of these elements draws: an unknown name is laid out as an inline element with its text. The outlines are canvas drawing over the picture, placed from each element's client rectangle. Nothing is added to the paragraph.

Show the code
  1. The paragraph.
  2. Sort each element into a kind and outline it as the line passes.

Warn about invisible frames

Three frames inside one drawable block, each holding a button. The first is from this origin. The second is a data: URL and the third is sandboxed, so both are other origins: the canvas has no picture of them. Tap all three. Then clear the box and look at what the canvas shows without the warning.

From this origin (srcdoc)

Another origin (data: URL)

Another origin (sandbox)

A frame from another origin is an empty box in the picture, and a tap on that empty box still presses the button inside the frame. Without the warning a reader can't see what a tap there will do.

Show the code
  1. Three frames in one drawable block.
  2. Find the frames with no contentDocument and hatch them.

Footer that is the floor

A <footer> drawn lying on the ground, with two signs standing on it. Move the slider to tilt the floor. The links in the footer are tapped where they lie.

Ferry

Slipway

The picture is drawn in strips because a 2D context has no perspective. The hit region doesn't need strips: updateElementGeometry() takes the perspective matrix itself, and the browser finds the link under a tap on the slanted floor.

Show the code
  1. A footer and two signs, all drawable.
  2. One matrix for the strips, the hit region and the places of the signs.

How it works

Show the code
  1. Each demo starts when its section comes near the screen.
  2. The paint handler shared by the five canvases.
  3. Place a block and turn a client rectangle into its pixels.
  4. After a lost context the elements are shown as plain HTML.

Live checks

The checks wait for a tap. Each builds its own small canvas in a corner of the window, and none of them touches the demos above. One of them reads pixels, from a copy of its fixture made with drawImage().

Findings

Measured in headless Chromium 157 on 2026-11-22. Not yet run on a phone.