Skip to content

Pin createImageBitmap() to the global method only #3165

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
Jul 18, 2025

Conversation

foolip
Copy link
Collaborator

@foolip foolip commented Jul 18, 2025

From the description one could arguably add
svgimageelement_as_source_image as well, which would change the Baseline
low date to 2023-12-11. But it's unlikely that SVG support is needed for
most uses of this API.

Note that this doesn't match https://caniuse.com/createimagebitmap, we
would need partial support and notes to represent everything that
caniuse says about this feature.

From the description one could arguably add
svgimageelement_as_source_image as well, which would change the Baseline
low date to 2023-12-11. But it's unlikely that SVG support is needed for
most uses of this API.

Note that this doesn't match https://caniuse.com/createimagebitmap, we
would need partial support and notes to represent everything that
caniuse says about this feature.
@github-actions github-actions bot added the feature definition Creating or defining new features or groups of features. label Jul 18, 2025
@jgraham
Copy link
Collaborator

jgraham commented Jul 18, 2025

So this means we only care if the constructor exists for determining baseline status? That also WFM.

@foolip
Copy link
Collaborator Author

foolip commented Jul 18, 2025

So this means we only care if the constructor exists for determining baseline status? That also WFM.

In this case I think it's reasonable, and pinning to the entrypoint of a feature is usually my starting point when trying to decide. But it's not a hard and fast rule because it doesn't always work, #2929 is a good example of a more complicated situation.

@foolip foolip merged commit 60caff4 into web-platform-dx:main Jul 18, 2025
4 checks passed
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