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

Update Chrome/Safari data for image-set() #22912

Merged
merged 1 commit into from
Apr 24, 2024
Merged

Conversation

foolip
Copy link
Contributor

@foolip foolip commented Apr 22, 2024

The history of this feature is complicated, with a long history of
prefixed support and recent extened syntax which should also work with
the prefixed form because it's defined as an alias:
https://drafts.csswg.org/css-images-4/#deprecated

This would be nicer with #17857
but for now this results in split entries with duplicated notes.

The details:

-webkit-image-set() was implementated in WebKit 536.4 for Safari:
WebKit/WebKit@63ee6e4
https://github.com/WebKit/WebKit/blob/63ee6e4e5f867a55faedef4a7f02fb1b9775dd7b/Source/WebCore/Configurations/Version.xcconfig

It was enabled in WebKit 536.8 for Chromium:
WebKit/WebKit@68a3754
https://github.com/WebKit/WebKit/blob/68a3754b19f8e92fabfc263b17baad33a895bd35/Source/WebCore/Configurations/Version.xcconfig

That maps to Safari 6 and Chrome 20. The data previously said Chrome 21,
so Chrome 20 was confirmed in BrowserStack using this test:
https://software.hixie.ch/utilities/js/live-dom-viewer/?saved=12632

image-set() was unprefixed in WebKit 603.1.11 (Safari 10.1):
WebKit/WebKit@ea622e8
https://github.com/WebKit/WebKit/blob/ea622e8b67a6bc11cc45d1d34953ac795df4dfb3/Source/WebCore/Configurations/Version.xcconfig

The extended syntax was added in WebKit 610.1.1 (Safari 14):
WebKit/WebKit@5269267
https://github.com/WebKit/WebKit/blob/52692677632e50f8d0e3a4b0f62c94e5520a47d9/Source/WebCore/Configurations/Version.xcconfig

@github-actions github-actions bot added the data:css Compat data for CSS features. https://developer.mozilla.org/docs/Web/CSS label Apr 22, 2024
The history of this feature is complicated, with a long history of
prefixed support and recent extened syntax which should also work with
the prefixed form because it's defined as an alias:
https://drafts.csswg.org/css-images-4/#deprecated

This would be nicer with mdn#17857
but for now this results in split entries with duplicated notes.

The details:

-webkit-image-set() was implementated in WebKit 536.4 for Safari:
WebKit/WebKit@63ee6e4
https://github.com/WebKit/WebKit/blob/63ee6e4e5f867a55faedef4a7f02fb1b9775dd7b/Source/WebCore/Configurations/Version.xcconfig

It was enabled in WebKit 536.8 for Chromium:
WebKit/WebKit@68a3754
https://github.com/WebKit/WebKit/blob/68a3754b19f8e92fabfc263b17baad33a895bd35/Source/WebCore/Configurations/Version.xcconfig

That maps to Safari 6 and Chrome 20. The data previously said Chrome 21,
so Chrome 20 was confirmed in BrowserStack using this test:
https://software.hixie.ch/utilities/js/live-dom-viewer/?saved=12632

image-set() was unprefixed in WebKit 603.1.11 (Safari 10.1):
WebKit/WebKit@ea622e8
https://github.com/WebKit/WebKit/blob/ea622e8b67a6bc11cc45d1d34953ac795df4dfb3/Source/WebCore/Configurations/Version.xcconfig

The extended syntax was added in WebKit 610.1.1 (Safari 14):
WebKit/WebKit@5269267
https://github.com/WebKit/WebKit/blob/52692677632e50f8d0e3a4b0f62c94e5520a47d9/Source/WebCore/Configurations/Version.xcconfig
"version_added": "20",
"version_removed": "113",
"partial_implementation": true,
"notes": "Support for <code>url</code> images only and <code>x</code> is the only supported resolution unit."
Copy link
Collaborator

Choose a reason for hiding this comment

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

I nearly suggested rewriting this note wholesale, but then I saw that you're copying an existing one. Letting it stand for consistency. 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Feel free to rewrite them all in a separate PR :)

@ddbeck ddbeck merged commit 71b32d5 into mdn:main Apr 24, 2024
6 checks passed
@foolip foolip deleted the webkit-image-set branch April 24, 2024 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:css Compat data for CSS features. https://developer.mozilla.org/docs/Web/CSS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants