Add more image formats: BMP, GIF, and JPEG#3921
Open
ddbeck wants to merge 5 commits intoweb-platform-dx:mainfrom
Open
Add more image formats: BMP, GIF, and JPEG#3921ddbeck wants to merge 5 commits intoweb-platform-dx:mainfrom
ddbeck wants to merge 5 commits intoweb-platform-dx:mainfrom
Conversation
captainbrosset
approved these changes
Apr 3, 2026
Comment on lines
+16
to
+18
| - api.HTMLCanvasElement.toBlob.type_parameter_jpeg | ||
| - api.HTMLCanvasElement.toDataURL | ||
| - api.HTMLCanvasElement.toDataURL.type_parameter_jpeg |
Contributor
There was a problem hiding this comment.
While we're at it, there's also type_parameter_png in BCD which we could add here. The compat data for it is a bit weird, because the spec says that browser must return the data as PNG if no type parameter is provided. So I would have expected this type's compat data to be the same as the toDataURL compat data, but that's not the case.
There's also type_parameter_webp, but that one is not supported on Safari. So we might want to ignore it for now.
Comment on lines
+200
to
+205
| "https://jpeg.org/jpeg/#content", | ||
| "Allowed because it's a spec not tracked in web-specs." | ||
| ], | ||
| [ | ||
| "https://www.rfc-editor.org/rfc/rfc7903#section-1.2", | ||
| "Allowed because it's a spec not tracked in web-specs." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This maps some of the longest-implemented yet unmapped keys from BCD.
I searched for related keys and found a couple unmapped canvas keys. I placed them with
canvaswhile I was at it.