From aa5ab45adcb47ef99f58f8a879ef925ded7e87a8 Mon Sep 17 00:00:00 2001 From: "Daniel D. Beck" Date: Thu, 2 Apr 2026 16:43:27 +0200 Subject: [PATCH 1/4] Add GIF image format feature --- features/gif.yml | 6 ++++++ features/gif.yml.dist | 17 +++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 features/gif.yml create mode 100644 features/gif.yml.dist diff --git a/features/gif.yml b/features/gif.yml new file mode 100644 index 00000000000..3067136431b --- /dev/null +++ b/features/gif.yml @@ -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 diff --git a/features/gif.yml.dist b/features/gif.yml.dist new file mode 100644 index 00000000000..d755662808b --- /dev/null +++ b/features/gif.yml.dist @@ -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 From ac76e826ab5f778c7d83d3a220066677b105bd66 Mon Sep 17 00:00:00 2001 From: "Daniel D. Beck" Date: Thu, 2 Apr 2026 16:50:47 +0200 Subject: [PATCH 2/4] Add JPEG image format feature --- features/canvas.yml | 2 ++ features/canvas.yml.dist | 2 ++ features/jpeg.yml | 5 +++++ features/jpeg.yml.dist | 17 +++++++++++++++++ 4 files changed, 26 insertions(+) create mode 100644 features/jpeg.yml create mode 100644 features/jpeg.yml.dist diff --git a/features/canvas.yml b/features/canvas.yml index 3e22db4f252..c590e495135 100644 --- a/features/canvas.yml +++ b/features/canvas.yml @@ -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 - api.HTMLCanvasElement.width - html.elements.canvas - html.elements.canvas.height diff --git a/features/canvas.yml.dist b/features/canvas.yml.dist index 92df1197e78..64e39bb3443 100644 --- a/features/canvas.yml.dist +++ b/features/canvas.yml.dist @@ -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 diff --git a/features/jpeg.yml b/features/jpeg.yml new file mode 100644 index 00000000000..6ba916475c6 --- /dev/null +++ b/features/jpeg.yml @@ -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 diff --git a/features/jpeg.yml.dist b/features/jpeg.yml.dist new file mode 100644 index 00000000000..944f05249cb --- /dev/null +++ b/features/jpeg.yml.dist @@ -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 From fdbe138dd66c987e60eedf336cd584cf6e7305e3 Mon Sep 17 00:00:00 2001 From: "Daniel D. Beck" Date: Thu, 2 Apr 2026 17:01:57 +0200 Subject: [PATCH 3/4] Add BMP image format feature --- features/bmp.yml | 5 +++++ features/bmp.yml.dist | 17 +++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 features/bmp.yml create mode 100644 features/bmp.yml.dist diff --git a/features/bmp.yml b/features/bmp.yml new file mode 100644 index 00000000000..43dacb3be03 --- /dev/null +++ b/features/bmp.yml @@ -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 diff --git a/features/bmp.yml.dist b/features/bmp.yml.dist new file mode 100644 index 00000000000..4e5fcbb44bd --- /dev/null +++ b/features/bmp.yml.dist @@ -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 From 3cc57058694f67810f4fca29f48994de1b35144f Mon Sep 17 00:00:00 2001 From: "Daniel D. Beck" Date: Thu, 2 Apr 2026 16:56:30 +0200 Subject: [PATCH 4/4] Allow image format spec URLs --- scripts/specs.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/specs.ts b/scripts/specs.ts index 2067b5f747f..5bedd26b341 100644 --- a/scripts/specs.ts +++ b/scripts/specs.ts @@ -195,6 +195,14 @@ const defaultAllowlist: allowlistItem[] = [ [ "https://github.com/whatwg/html/pull/11723", "Allowed because the focusgroup spec PR hasn't landed yet. Once the PR merges, remove this and add the spec URL to the focusgroup feature." + ], + [ + "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." ] ];