[HTML] Add OffscreenCanvasRenderingContext2D
method getContextAttributes
#37727
Labels
Content:WebAPI
Web API docs
document not written
Missing document page
help wanted
If you know something about this topic, we would love your help!
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D
also
https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/getContext
What specific section or headline is this issue about?
For
OffscreenCanvasRenderingContext2D
: add a method getContextAttributesFor
OffscreenCanvas
: "2d context attributes"What information was incorrect, unhelpful, or incomplete?
In this PR to the HTML spec, we are adding
getContextAttributes
toOffscreenCanvasRenderingContext2D
. Note that this method already exists inCanvasRenderingContext2D
, and its omission from the spec was a mistake.Additionally, we are unifying the creation parameters in
CanvasRenderingContext2DSettings
for bothHTMLCanvasElement
andOffscreenCanvas
getContext
. Thedesynchronized
andwillReadFrequently
attributes were accidentally omitted fromOffscreenCanvas
getContext
.What did you expect to see?
In https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D: Add documentation for the new
getContextAttributes
methodIn https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/getContext add documentation for the
desynchronized
andwillReadFrequently
attributes present in theHTMLCanvasElement
getContext
method.Do you have any supporting links, references, or citations?
See this pull request and further links and discussion in this issue.
Do you have anything more you want to share?
No response
The text was updated successfully, but these errors were encountered: