From 047c4b62dfa9907669fa66ca3ceb4b0d76c62910 Mon Sep 17 00:00:00 2001 From: James Stuckey Weber Date: Mon, 21 Oct 2024 11:11:04 -0400 Subject: [PATCH 1/2] Add image() --- features/image-function.yml | 6 ++++++ features/image-function.yml.dist | 8 ++++++++ 2 files changed, 14 insertions(+) create mode 100644 features/image-function.yml create mode 100644 features/image-function.yml.dist diff --git a/features/image-function.yml b/features/image-function.yml new file mode 100644 index 00000000000..63116e95f38 --- /dev/null +++ b/features/image-function.yml @@ -0,0 +1,6 @@ +name: image() +description: The `image()` CSS function creates an image similar to `url()`, but with additional functionality. It can create a solid color as an image, provide a fallback from an image URL to a solid color, or clip a sprite image using media fragments. +spec: https://drafts.csswg.org/css-images-4/#image-notation +group: images +compat_features: + - css.types.image.image diff --git a/features/image-function.yml.dist b/features/image-function.yml.dist new file mode 100644 index 00000000000..c404c11831d --- /dev/null +++ b/features/image-function.yml.dist @@ -0,0 +1,8 @@ +# Generated from: image-function.yml +# Do not edit this file by hand. Edit the source file instead! + +status: + baseline: false + support: {} +compat_features: + - css.types.image.image From d89c908d60d3f4cec0a4fbcdb209904219ccc286 Mon Sep 17 00:00:00 2001 From: James Stuckey Weber Date: Mon, 21 Oct 2024 11:52:59 -0400 Subject: [PATCH 2/2] Add review --- features/image-function.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/image-function.yml b/features/image-function.yml index 63116e95f38..053bccc0f67 100644 --- a/features/image-function.yml +++ b/features/image-function.yml @@ -1,5 +1,5 @@ name: image() -description: The `image()` CSS function creates an image similar to `url()`, but with additional functionality. It can create a solid color as an image, provide a fallback from an image URL to a solid color, or clip a sprite image using media fragments. +description: The `image()` CSS function creates an image similar to `url()` but with additional functionality. It can create a solid color as an image, provide a fallback from an image URL to a solid color, or clip a sprite image using media fragments. Not to be confused with the `Image()` constructor. spec: https://drafts.csswg.org/css-images-4/#image-notation group: images compat_features: