Skip to content

Conversation

@jamesnw
Copy link
Collaborator

@jamesnw jamesnw commented Oct 21, 2024

Closes #2005

This is a bit tricky, as there is no current implementation (and has been in the spec for 13+ years?!). I suspect that this spec will not be delivered as a single feature, and will likely need to be broken apart as implementation comes out.

For space, I omitted bidirectional image support and respecting the image orientation specified in the image’s metadata.

@github-actions github-actions bot added the feature definition Creating or defining new features or groups of features. label Oct 21, 2024
Copy link
Collaborator

@ddbeck ddbeck left a comment

Choose a reason for hiding this comment

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

One optional suggestion on the description, but you're welcome to merge with or without it. Thank you!

@@ -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.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
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.

@jamesnw jamesnw merged commit 8fadd8f into web-platform-dx:main Oct 21, 2024
3 checks passed
@jamesnw jamesnw deleted the image-function branch October 21, 2024 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature definition Creating or defining new features or groups of features.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

image()

2 participants