UA Ledger · Playable Test Bench · draft for review

Give the canvas a deliberate pixel budget

Teaching laboratory. Cases run in this page against the authored functions. This is not a device panel, network approval, analytics-delivery proof or campaign result. Inputs are synthetic.

CSS size and canvas backing resolution answer different questions. This fixture checks a deliberate density cap so a high-density input does not silently multiply the playable's pixel workload.

Primary documentation: MDN: dpr buffer (body read 2026-09-19).

Cases

CaseInputExpectedFixedBroken

What a pass does not prove

Passing the test proves buffer arithmetic for the supplied values. It does not measure frame time, memory pressure or perceived sharpness on a physical device. The tradeoff is explicit: limiting resolution can reduce pixel work while softening details, so a producer still needs to review text and art at the chosen setting.