Skip to content

Conversation

@AlaricSenat
Copy link
Contributor

Description

Methods to blank a canvas with a bitmaprenderer context aren't obvious while reading MDN, according to the spec a null bitmap is the way to go.

Motivation

This conveys a way to clear the canvas directly from the main drawing method.

Additional details

Web reference link

Methods to blank a canvas with a `bitmaprenderer` context aren't obvious
while reading MDN, according to the spec[^1] a `null` bitmap is the way
to go.

[^1]: <https://html.spec.whatwg.org/multipage/canvas.html#dom-imagebitmaprenderingcontext-transferfromimagebitmap>
@AlaricSenat AlaricSenat requested a review from a team as a code owner October 27, 2025 17:01
@github-actions github-actions bot added Content:WebAPI Web API docs size/xs [PR only] 0-5 LoC changed labels Oct 27, 2025
@github-actions
Copy link
Contributor

@sideshowbarker sideshowbarker merged commit 2eaff59 into mdn:main Oct 28, 2025
7 checks passed
@sideshowbarker
Copy link
Member

Alaric, 👍 nice update, and congrats on landing your first docs change here — welcome aboard 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:WebAPI Web API docs size/xs [PR only] 0-5 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants