Friction log: where the API did not do what I expected
Every place found so far where HTML-in-canvas, or a Chrome API used with it, did not do what the person writing a page expected. Each entry says what was expected, what happened, in which browser, where to see it, what the pages do now, and whether it is a browser bug, a gap in the API, the API working as built, or my mistake. Nineteen entries have a probe: the live checks at the end of the page re-run them in this browser and mark each entry "still happens" or "does not happen".
Crashes and lost canvases
These have their own page, with steps, evidence and a standalone reproduction for each: /crashes/. The list below is read from that page's data and isn't a second copy.
Show the code the entries, the probes, the fixture a probe draws into
- The entries. Data, one object each. A new one is added here.
- The fixture. A drawable 2D canvas on the test stage. Pixels are read from a
drawImage()copy. - The probes. One function for each entry that can be decided by script. Each answers
{ happens, detail }. - From a probe to a live check. A check fails while the browser still does what the entry describes.
- The text of one entry.
How it works
- The entries are written by hand in
/friction/entries.jsfromFINDINGS.md, the "Things that bit", "Chromium bugs" and "API requests" sections of the files infindings/, anddocs/graphics-rules.md. Each names the file that holds the full record. - "Measured" means a live check or a script produced it in headless Chromium 157.0.8103.78 with software rendering (C157) unless the entry names another browser. "Reported" means I saw it on my phone, Chrome 159 on Android (A159), and wasn't reproduced in the test browser.
- An entry with a probe is re-run here. The probe builds its own fixture on the test stage, away from the page, and never touches a visible canvas. No probe opens a WebGL context or a WebGPU device, and none reads a drawable canvas directly.
- The probes wait for a press. Several of them ask
elementFromPoint()on the test stage or count paint events over a third of a second, and a page should start with nothing else running. - A crash or a lost canvas is recorded on /crashes/. An entry here that has one links to it.
Live checks
One check for each probe. A check is named after its entry and fails while this browser still does what the entry describes. All nineteen are expected to fail in Chromium 157. A check that passes marks an entry that is out of date for this browser.
| Result | Entry | Detail |
|---|
Findings
State on 2026-11-21. Headless Chromium 157.0.8103.78 for "measured", Chrome 159 on Android for "reported".
- 79 entries. 18 look like browser bugs, 17 are things the API has no call for, 21 are the API working as built, 8 are my mistakes, 7 come from libraries or the test browser, and 8 have no known cause. The crashes and lost canvases on
/crashes/are counted there. - Hit testing has the most entries, 13. The last draw decides an element's one hit region, a draw with no pixels moves it, a source-rectangle draw shrinks it, and the browser remembers its answer for a point after the region moves. Most pages that draw an element twice or in pieces met at least one of these.
- Most of the time lost was to silence. A draw with no size, an SVG drawn with
offsetWidth, a filter id that isn't found, cross-origin content and a nested drawable outside the window all draw wrongly or draw nothing and throw nothing. "No cached paint record for element" is the one error message for four different causes. - All nineteen probes reproduce in Chromium 157 at device scale factor 2 on 2026-11-21. At scale factor 1 the probe for a draw with no size can't decide.
- Nothing here has been filed. Each entry copies as plain text for a report.
- Not verified: every probe on Chrome 159 for Android. Press "Run the checks" on the phone. The entries about touch (
:active,touch-actionin a picker, a rotated range input) were measured with emulated touch only.