Paint event inspector

One canvas draws eleven elements. Each time the canvas gets a paint event, the elements named in event.changedElements flash. The label on each element is its count and its rate over the last second, and the strip under it is its last four seconds. Type in the field, press the button, and start the video to see which changes raise an event.

00:00:00
background-color
transform
opacity
a marquee element scrolls its text
Static text

Show the code count changedElements, draw a flash and a strip per element
  1. The markup. Eleven drawable children of one canvas.
  2. The animations, in CSS. Two of them are on the drawable element itself and one is on a descendant.
  3. Counting. One listener for paint on the canvas.
  4. One frame. Draw every element, then its flash, count and strip.
  5. Drawing the flash, the strip and the count.

How it works

Live checks

Each check builds a small canvas of its own in a corner of the window and counts events for about half a second. The picture above isn't touched.

ResultExperimentDetail

Findings

From Chromium 157, headless with software rendering, on 2026-11-21. The rates are from a 60 Hz frame clock. The rows above say what your browser does.