Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HTML] Add OffscreenCanvasRenderingContext2D method getContextAttributes #37727

Open
ccameron-chromium opened this issue Jan 20, 2025 · 0 comments
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!

Comments

@ccameron-chromium
Copy link

ccameron-chromium commented Jan 20, 2025

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 getContextAttributes

For OffscreenCanvas: "2d context attributes"

What information was incorrect, unhelpful, or incomplete?

In this PR to the HTML spec, we are adding getContextAttributes to OffscreenCanvasRenderingContext2D. Note that this method already exists in CanvasRenderingContext2D, and its omission from the spec was a mistake.

Additionally, we are unifying the creation parameters in CanvasRenderingContext2DSettings for both HTMLCanvasElement and OffscreenCanvas getContext. The desynchronized and willReadFrequently attributes were accidentally omitted from OffscreenCanvas getContext.

What did you expect to see?

In https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D: Add documentation for the new getContextAttributes method

In https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/getContext add documentation for the desynchronized and willReadFrequently attributes present in the HTMLCanvasElement 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

@ccameron-chromium ccameron-chromium added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Jan 20, 2025
@github-actions github-actions bot added the Content:WebAPI Web API docs label Jan 20, 2025
@Josh-Cena Josh-Cena added help wanted If you know something about this topic, we would love your help! document not written Missing document page and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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!
Projects
None yet
Development

No branches or pull requests

2 participants