-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Notes with version ranges #17857
Comments
@Fyrd do you have thoughts on what would work best for caniuse.com? |
cc @ddbeck |
I love the idea of adding structure to notes—it's something I've long wished for. There's a lot to be won from structuring notes, both in terms of data quality and consistency and making it work better for consumers. Thinking aloud here:
|
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 WebKit/WebKit@5269267
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
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
#22939 is a good example of the need for this. I needed to use 6 entries in the compat statements array, because the API was both prefixed and unprefixed, and there were two different states of partial support. 2 times 3 is 6. |
Notes are used a lot in BCD to inform readers about specific bugs that affect certain versions of a browser. There are two predominant styles for this, shown by example here:
A note including the affected version:
browser-compat-data/css/properties/align-self.json
Lines 93 to 96 in 11afcd7
Multiple support statements, using
version_added
andversion_removed
:browser-compat-data/api/Element.json
Lines 2651 to 2661 in 11afcd7
The data for the "visibilitychange" change event in #17854 is great example of how complicated things can get with the multi-statement style, requiring repeated notes.
Some issues with the current approach:
I would like us to consider adopting a different structure, where notes can have version ranges independent from the main
version_added
andversion_removed
. Mock proposal with the "visibilitychange" case, with simplified notes to make it cleaner:cc @Elchi3 @queengooborg
The text was updated successfully, but these errors were encountered: