Skip to content

docs: document OffscreenCanvas (2.8)#3084

Open
lunadogbot wants to merge 1 commit intodenoland:mainfrom
lunadogbot:docs/2.8-offscreen-canvas
Open

docs: document OffscreenCanvas (2.8)#3084
lunadogbot wants to merge 1 commit intodenoland:mainfrom
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
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.

1 participant