Skip to content

Add overloads for specific context types to OffscreenCanvas.getContext #1474

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

Merged
merged 1 commit into from
Jan 15, 2023
Merged

Add overloads for specific context types to OffscreenCanvas.getContext #1474

merged 1 commit into from
Jan 15, 2023

Conversation

StenAL
Copy link
Contributor

@StenAL StenAL commented Jan 14, 2023

Each context type can only return the relevant context or null.

There are already similar overloads in place for HTMLCanvasElement.getContext.

Relevant part of the HTML spec: https://html.spec.whatwg.org/multipage/canvas.html#dom-offscreencanvas-getcontext

Each context type can only return the relevant context or null. There
are already similar overloads in place for HTMLCanvasElement.getContext.

Relevant part of the HTML spec: https://html.spec.whatwg.org/multipage/canvas.html#dom-offscreencanvas-getcontext
@github-actions
Copy link
Contributor

Thanks for the PR!

This section of the codebase is owned by @saschanaz - if they write a comment saying "LGTM" then it will be merged.

@StenAL
Copy link
Contributor Author

StenAL commented Jan 14, 2023

@microsoft-github-policy-service agree

@saschanaz
Copy link
Contributor

LGTM, thanks!

@github-actions github-actions bot merged commit 2966206 into microsoft:main Jan 15, 2023
@github-actions
Copy link
Contributor

Merging because @saschanaz is a code-owner of all the changes - thanks!

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.

2 participants