You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Missing "webgpu" getContext overloads for HTMLCanvasElement and OffscreenCanvas #2508
HTMLCanvasElement.getContext("webgpu) and OffscreenCanvas.getContext("webgpu") are missing overloads and therefore resolving to the generic getContext overloads instead of returning GPUCanvasContext. GPUCanvasContext is already present in the generated DOM types. But additionalSignatures entries in inputfiles/overriding types.jsonc only include "2d", "bitmaprenderer", "webgl", "webgl2". As a result, WebGPU Canvas contexts losing it's type specific info.
Activity
saschanaz commentedon Jul 18, 2026
Thanks for filing this! Yes, please go ahead for a PR 👍