Skip to content

Conversation

@petele
Copy link
Contributor

@petele petele commented Jul 11, 2024

Adds HTML <canvas> element

Note: also removes `api.HTMLCanvasElement.transferControlToOffscreen` from the Off Screen Canvas file because that property is part of the canvas element.
@github-actions github-actions bot added the feature definition Creating or defining new features or groups of features. label Jul 11, 2024
@petele
Copy link
Contributor Author

petele commented Jul 11, 2024

@ddbeck & @foolip - this one prob needs a little extra scrutiny for how I handled the transferToOffscreen method

@foolip
Copy link
Collaborator

foolip commented Jul 12, 2024

@petele I think transferControlToOffscreen ought to be in the offscreen canvas feature. It shipped with OffscreenCanvas and is one way of getting a OffscreenCanvas instance, in addition to the OffscreenCanvas constructor.

It's quite common for an API to have small bits on interfaces that mostly belong to another feature in this way. For example, https://w3c.github.io/selection-api/ has window.getSelection() and document.getSelection(), and those make sense together, not in whatever feature we end up putting Window and Document in.

@petele
Copy link
Contributor Author

petele commented Jul 15, 2024

integrated feedback

@petele petele requested review from ddbeck and foolip July 16, 2024 13:53
Co-authored-by: Philip Jägenstedt <[email protected]>
@foolip foolip merged commit 9c8373b into web-platform-dx:main Jul 18, 2024
@petele petele deleted the elem-canvas branch July 18, 2024 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature definition Creating or defining new features or groups of features.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants