-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
OffscreenCanvasRenderingContext2D does not have getContextAttributes #10872
Comments
Seems worth looking at git blame (see README) to see if there was a reason. Might just be MVP. cc @whatwg/canvas |
Interestingly there is no discussion of what the options are for OffscreenCanvas.getContext. |
It dates back to this issue (sorry, forgot to mention it). It has a funny history where the API was accidentally shipped, then a Blink "Intent to Remove" caused people to realized that maybe we need it. It was committed here. Do you think adding this would count as a clarification, or should it have a full review? Would it be best to fix this by:
I'm leaning towards Option B (since most related functionality, like 2d context creation, is separate). |
All normative changes go through this process: https://whatwg.org/working-mode#changes I.e., PR + tests + implementer interest. B seems fine. We should also split the dictionary if we don't actually support the same options, to enable feature testing going forward. |
What is the issue with the HTML Standard?
The getContextAttributes method allows for querying properties of a
CanvasRenderingContext2D
, such as its color space, alpha state, etc.This method is not present on
OffscreenCanvasRenderingContext
.This doesn't seem right, especially considering that the offscreen canvas 2D context is created using
CanvasRenderingContext2DSettings
`. Is that just an oversight?The text was updated successfully, but these errors were encountered: