Skip to content
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

Add ImageBitmap and related APIs #1707

Merged
merged 23 commits into from
Sep 24, 2024
Merged
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
20 changes: 20 additions & 0 deletions features/createimagebitmap.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: createImageBitmap
description: The `createImageBitmap()` global method creates an `ImageBitmap` object from a source such as an image, SVG, blob, or canvas. An `ImageBitmap` object represents pixel data that can be drawn to a canvas with lower latency than other types, such as `ImageData`.
caniuse: createimagebitmap
spec: https://html.spec.whatwg.org/multipage/imagebitmap-and-animations.html#imagebitmap
compat_features:
- api.createImageBitmap
- api.createImageBitmap.options_colorSpaceConversion_parameter
- api.createImageBitmap.options_imageOrientation_parameter
- api.createImageBitmap.options_premultiplyAlpha_parameter
- api.createImageBitmap.options_resizeHeight_parameter
- api.createImageBitmap.options_resizeQuality_parameter
- api.createImageBitmap.options_resizeWidth_parameter
- api.createImageBitmap.svgimageelement_as_source_image
- api.ImageBitmap
- api.ImageBitmap.close
- api.ImageBitmap.height
- api.ImageBitmap.width
- api.ImageBitmapRenderingContext
- api.ImageBitmapRenderingContext.canvas
- api.ImageBitmapRenderingContext.transferFromImageBitmap
141 changes: 141 additions & 0 deletions features/createimagebitmap.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
# Generated from: createimagebitmap.yml
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: false
support:
chrome: "66"
chrome_android: "66"
edge: "79"
safari: "17.2"
safari_ios: "17.2"
compat_features:
# baseline: high
# baseline_low_date: 2020-01-15
# baseline_high_date: 2022-07-15
# support:
# chrome: "66"
# chrome_android: "66"
# edge: "79"
# firefox: "46"
# firefox_android: "46"
# safari: "11.1"
# safari_ios: "11.3"
- api.ImageBitmapRenderingContext

# baseline: high
# baseline_low_date: 2020-01-15
# baseline_high_date: 2022-07-15
# support:
# chrome: "66"
# chrome_android: "66"
# edge: "79"
# firefox: "50"
# firefox_android: "50"
# safari: "11.1"
# safari_ios: "11.3"
- api.ImageBitmapRenderingContext.transferFromImageBitmap

# baseline: high
# baseline_low_date: 2021-09-20
# baseline_high_date: 2024-03-20
# support:
# chrome: "50"
# chrome_android: "50"
# edge: "79"
# firefox: "42"
# firefox_android: "42"
# safari: "15"
# safari_ios: "15"
- api.ImageBitmap
- api.ImageBitmap.height
- api.ImageBitmap.width
- api.createImageBitmap

# baseline: high
# baseline_low_date: 2021-09-20
# baseline_high_date: 2024-03-20
# support:
# chrome: "52"
# chrome_android: "52"
# edge: "79"
# firefox: "46"
# firefox_android: "46"
# safari: "15"
# safari_ios: "15"
- api.ImageBitmap.close

# baseline: high
# baseline_low_date: 2021-10-05
# baseline_high_date: 2024-04-05
# support:
# chrome: "52"
# chrome_android: "52"
# edge: "79"
# firefox: "93"
# firefox_android: "93"
# safari: "15"
# safari_ios: "15"
- api.createImageBitmap.options_imageOrientation_parameter
- api.createImageBitmap.options_premultiplyAlpha_parameter

# baseline: high
# baseline_low_date: 2022-02-08
# baseline_high_date: 2024-08-08
# support:
# chrome: "66"
# chrome_android: "66"
# edge: "79"
# firefox: "97"
# firefox_android: "97"
# safari: "11.1"
# safari_ios: "11.3"
- api.ImageBitmapRenderingContext.canvas

# baseline: high
# baseline_low_date: 2022-03-08
# baseline_high_date: 2024-09-08
# support:
# chrome: "54"
# chrome_android: "54"
# edge: "79"
# firefox: "98"
# firefox_android: "98"
# safari: "15"
# safari_ios: "15"
- api.createImageBitmap.options_resizeHeight_parameter
- api.createImageBitmap.options_resizeWidth_parameter

# baseline: high
# baseline_low_date: 2022-03-08
# baseline_high_date: 2024-09-08
# support:
# chrome: "58"
# chrome_android: "58"
# edge: "79"
# firefox: "98"
# firefox_android: "98"
# safari: "15"
# safari_ios: "15"
- api.createImageBitmap.options_colorSpaceConversion_parameter

# baseline: low
# baseline_low_date: 2023-12-11
# support:
# chrome: "59"
# chrome_android: "59"
# edge: "79"
# firefox: "65"
# firefox_android: "65"
# safari: "17.2"
# safari_ios: "17.2"
- api.createImageBitmap.svgimageelement_as_source_image

# baseline: false
# support:
# chrome: "54"
# chrome_android: "54"
# edge: "79"
# safari: "15"
# safari_ios: "15"
- api.createImageBitmap.options_resizeQuality_parameter
7 changes: 0 additions & 7 deletions features/draft/spec/html.yml
Original file line number Diff line number Diff line change
Expand Up @@ -262,13 +262,6 @@ compat_features:
- api.History.replaceState
- api.History.scrollRestoration
- api.History.state
- api.ImageBitmap
- api.ImageBitmap.close
- api.ImageBitmap.height
- api.ImageBitmap.width
- api.ImageBitmapRenderingContext
- api.ImageBitmapRenderingContext.canvas
- api.ImageBitmapRenderingContext.transferFromImageBitmap
- api.ImageData
- api.ImageData.ImageData
- api.ImageData.colorSpace
Expand Down
55 changes: 0 additions & 55 deletions features/draft/spec/html.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2696,32 +2696,6 @@ compat_features:
# safari_ios: "12"
- javascript.operators.import_meta

# baseline: high
# baseline_low_date: 2020-01-15
# baseline_high_date: 2022-07-15
# support:
# chrome: "66"
# chrome_android: "66"
# edge: "79"
# firefox: "46"
# firefox_android: "46"
# safari: "11.1"
# safari_ios: "11.3"
- api.ImageBitmapRenderingContext

# baseline: high
# baseline_low_date: 2020-01-15
# baseline_high_date: 2022-07-15
# support:
# chrome: "66"
# chrome_android: "66"
# edge: "79"
# firefox: "50"
# firefox_android: "50"
# safari: "11.1"
# safari_ios: "11.3"
- api.ImageBitmapRenderingContext.transferFromImageBitmap

# baseline: high
# baseline_low_date: 2020-01-15
# baseline_high_date: 2022-07-15
Expand Down Expand Up @@ -2955,24 +2929,8 @@ compat_features:
# firefox_android: "42"
# safari: "15"
# safari_ios: "15"
- api.ImageBitmap
- api.ImageBitmap.height
- api.ImageBitmap.width
- api.createImageBitmap

# baseline: high
# baseline_low_date: 2021-09-20
# baseline_high_date: 2024-03-20
# support:
# chrome: "52"
# chrome_android: "52"
# edge: "79"
# firefox: "46"
# firefox_android: "46"
# safari: "15"
# safari_ios: "15"
- api.ImageBitmap.close

# baseline: high
# baseline_low_date: 2021-09-20
# baseline_high_date: 2024-03-20
Expand Down Expand Up @@ -3083,19 +3041,6 @@ compat_features:
# safari_ios: "15.2"
- api.crossOriginIsolated

# baseline: high
# baseline_low_date: 2022-02-08
# baseline_high_date: 2024-08-08
# support:
# chrome: "66"
# chrome_android: "66"
# edge: "79"
# firefox: "97"
# firefox_android: "97"
# safari: "11.1"
# safari_ios: "11.3"
- api.ImageBitmapRenderingContext.canvas

# baseline: high
# baseline_low_date: 2022-03-08
# baseline_high_date: 2024-09-08
Expand Down