Skip to content

docs: document OffscreenCanvas (2.8)#3084

Merged
crowlKats merged 6 commits intodenoland:2.8from
lunadogbot:docs/2.8-offscreen-canvas
May 5, 2026
Merged

docs: document OffscreenCanvas (2.8)#3084
crowlKats merged 6 commits intodenoland:2.8from
lunadogbot:docs/2.8-offscreen-canvas

Conversation

@lunadogbot
Copy link
Copy Markdown

Summary

Documents the new OffscreenCanvas web API shipping in Deno 2.8 (denoland/deno#29357).

  • New "OffscreenCanvas" section in runtime/reference/web_platform_apis.md.
  • Includes a 2D-drawing + convertToBlob example and a list of typical use cases (server-side image generation, Web Worker off-thread drawing, thumbnails).
  • Notes the WebGL/WebGPU-on-OffscreenCanvas limitation.

Test plan

  • deno task serve — section renders ahead of the "Deviations of other APIs from spec" heading.
  • If the upstream PR's spec coverage changes (e.g. adds WebGL2 support) before merge, the limitation note should be updated.

Adds an OffscreenCanvas section to the Web platform APIs reference,
describing the new API available in Deno 2.8. Covers a typical
2D-drawing + convertToBlob() example, common use cases (server-side
image generation, off-thread drawing, thumbnails), and notes that
WebGL/WebGPU contexts on OffscreenCanvas are not yet supported.

Refs denoland/deno#29357
Comment thread runtime/reference/web_platform_apis.md Outdated
lunadogbot and others added 3 commits May 1, 2026 12:19
Per @Hajime-san — Deno's OffscreenCanvas supports only \`bitmaprenderer\`
and \`webgpu\`; \`2d\` / \`webgl\` / \`webgl2\` return null. Replaces
the broken 2D drawing example with a bitmaprenderer image-encode flow
and rewrites the "limitations" line into an explicit "Supported
rendering contexts" subsection. WebGPU is supported, so it no longer
appears in the unsupported list.

Refs denoland/deno#29357
@crowlKats crowlKats changed the base branch from main to 2.8 May 5, 2026 10:23
@crowlKats crowlKats merged commit 4b8d485 into denoland:2.8 May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants