Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions features/bmp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name: BMP
description: The BMP image format is an uncompressed raster graphics file format. Also known as a bitmap.
spec: https://www.rfc-editor.org/rfc/rfc7903#section-1.2
compat_features:
- mediatypes.image.bmp
17 changes: 17 additions & 0 deletions features/bmp.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated from: bmp.yml
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: high
baseline_low_date: 2015-07-29
baseline_high_date: 2018-01-29
support:
chrome: "1"
chrome_android: "18"
edge: "12"
firefox: "1"
firefox_android: "4"
safari: "1"
safari_ios: "1"
compat_features:
- mediatypes.image.bmp
2 changes: 2 additions & 0 deletions features/canvas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ compat_features:
- api.HTMLCanvasElement.getContext
- api.HTMLCanvasElement.height
- api.HTMLCanvasElement.toBlob
- api.HTMLCanvasElement.toBlob.type_parameter_jpeg
- api.HTMLCanvasElement.toDataURL
- api.HTMLCanvasElement.toDataURL.type_parameter_jpeg
Comment on lines +16 to +18
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

- api.HTMLCanvasElement.width
- html.elements.canvas
- html.elements.canvas.height
Expand Down
2 changes: 2 additions & 0 deletions features/canvas.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,5 @@ compat_features:
# safari: "11"
# safari_ios: "11"
- api.HTMLCanvasElement.toBlob
- api.HTMLCanvasElement.toBlob.type_parameter_jpeg
- api.HTMLCanvasElement.toDataURL.type_parameter_jpeg
6 changes: 6 additions & 0 deletions features/gif.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: GIF
description: The GIF (Graphics Interchange Format) image format is a raster graphics file format with animation and lossless compression.
spec:
- https://www.w3.org/Graphics/GIF/spec-gif89a.txt#top
compat_features:
- mediatypes.image.gif
17 changes: 17 additions & 0 deletions features/gif.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated from: gif.yml
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: high
baseline_low_date: 2015-07-29
baseline_high_date: 2018-01-29
support:
chrome: "1"
chrome_android: "18"
edge: "12"
firefox: "1"
firefox_android: "4"
safari: "1"
safari_ios: "1"
compat_features:
- mediatypes.image.gif
5 changes: 5 additions & 0 deletions features/jpeg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name: JPEG
description: The JPEG image format is a raster graphics file format with lossy compression.
spec: https://jpeg.org/jpeg/#content
compat_features:
- mediatypes.image.jpeg
17 changes: 17 additions & 0 deletions features/jpeg.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated from: jpeg.yml
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: high
baseline_low_date: 2015-07-29
baseline_high_date: 2018-01-29
support:
chrome: "1"
chrome_android: "18"
edge: "12"
firefox: "1"
firefox_android: "4"
safari: "1"
safari_ios: "1"
compat_features:
- mediatypes.image.jpeg
8 changes: 8 additions & 0 deletions scripts/specs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,14 @@ const defaultAllowlist: allowlistItem[] = [
[
"http://webmachinelearning.github.io/prompt-api/",
"Allowed because that's where LanguageModel (aka Prompt API) spec currently lives."
],
[
"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."
Comment on lines +204 to +209
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tidoust should web-specs track these?

]
];

Expand Down