From 668d2e4be5a7fadfcf606dcdec3c8e5fd70938e0 Mon Sep 17 00:00:00 2001 From: Chris Mills Date: Fri, 15 Mar 2024 12:20:41 +0000 Subject: [PATCH 1/4] Add data for cross-document view transitions features --- api/NavigationActivation.json | 4 + api/PageRevealEvent.json | 70 +++++++++++++++ api/PageSwapEvent.json | 141 ++++++++++++++++++++++++++++++ api/Window.json | 70 +++++++++++++++ css/at-rules/view-transition.json | 44 ++++++++++ html/elements/link.json | 35 ++++++++ 6 files changed, 364 insertions(+) create mode 100644 api/PageSwapEvent.json create mode 100644 css/at-rules/view-transition.json diff --git a/api/NavigationActivation.json b/api/NavigationActivation.json index 9dfc4bf3ab7268..32a47ccd7d4c9b 100644 --- a/api/NavigationActivation.json +++ b/api/NavigationActivation.json @@ -2,6 +2,7 @@ "api": { "NavigationActivation": { "__compat": { + "mdn_url": "https://developer.mozilla.org/docs/Web/API/NavigationActivation", "spec_url": "https://html.spec.whatwg.org/multipage/nav-history-apis.html#navigationactivation", "tags": [ "web-features:navigation-activation" @@ -37,6 +38,7 @@ }, "entry": { "__compat": { + "mdn_url": "https://developer.mozilla.org/docs/Web/API/NavigationActivation/entry", "spec_url": "https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-navigationactivation-entry", "tags": [ "web-features:navigation-activation" @@ -73,6 +75,7 @@ }, "from": { "__compat": { + "mdn_url": "https://developer.mozilla.org/docs/Web/API/NavigationActivation/from", "spec_url": "https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-navigationactivation-from", "tags": [ "web-features:navigation-activation" @@ -109,6 +112,7 @@ }, "navigationType": { "__compat": { + "mdn_url": "https://developer.mozilla.org/docs/Web/API/NavigationActivation/navigationType", "spec_url": "https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-navigationactivation-navigationtype", "tags": [ "web-features:navigation-activation" diff --git a/api/PageRevealEvent.json b/api/PageRevealEvent.json index 2222f7d4554f45..e37d12d6fab50c 100644 --- a/api/PageRevealEvent.json +++ b/api/PageRevealEvent.json @@ -2,6 +2,7 @@ "api": { "PageRevealEvent": { "__compat": { + "mdn_url": "https://developer.mozilla.org/docs/Web/API/PageRevealEvent", "spec_url": "https://html.spec.whatwg.org/multipage/nav-history-apis.html#the-pagerevealevent-interface", "support": { "chrome": { @@ -31,6 +32,75 @@ "standard_track": true, "deprecated": false } + }, + "PageRevealEvent": { + "__compat": { + "description": "PageRevealEvent() constructor", + "mdn_url": "https://developer.mozilla.org/docs/Web/API/PageRevealEvent/PageRevealEvent", + "spec_url": "https://html.spec.whatwg.org/multipage/nav-history-apis.html#the-pagerevealevent-interface", + "support": { + "chrome": { + "version_added": "123" + }, + "chrome_android": "mirror", + "edge": "mirror", + "firefox": { + "version_added": false + }, + "firefox_android": "mirror", + "ie": { + "version_added": false + }, + "oculus": "mirror", + "opera": "mirror", + "opera_android": "mirror", + "safari": { + "version_added": false + }, + "safari_ios": "mirror", + "samsunginternet_android": "mirror", + "webview_android": "mirror" + }, + "status": { + "experimental": true, + "standard_track": true, + "deprecated": false + } + } + }, + "viewTransition": { + "__compat": { + "mdn_url": "https://developer.mozilla.org/docs/Web/API/PageRevealEvent/viewTransition", + "spec_url": "https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-pagerevealevent-viewtransition", + "support": { + "chrome": { + "version_added": "123" + }, + "chrome_android": "mirror", + "edge": "mirror", + "firefox": { + "version_added": false + }, + "firefox_android": "mirror", + "ie": { + "version_added": false + }, + "oculus": "mirror", + "opera": "mirror", + "opera_android": "mirror", + "safari": { + "version_added": false + }, + "safari_ios": "mirror", + "samsunginternet_android": "mirror", + "webview_android": "mirror" + }, + "status": { + "experimental": true, + "standard_track": true, + "deprecated": false + } + } } } } diff --git a/api/PageSwapEvent.json b/api/PageSwapEvent.json new file mode 100644 index 00000000000000..68e70fdec722d1 --- /dev/null +++ b/api/PageSwapEvent.json @@ -0,0 +1,141 @@ +{ + "api": { + "PageSwapEvent": { + "__compat": { + "mdn_url": "https://developer.mozilla.org/docs/Web/API/PageSwapEvent", + "spec_url": "https://html.spec.whatwg.org/multipage/nav-history-apis.html#the-pageswapevent-interface", + "support": { + "chrome": { + "version_added": "124" + }, + "chrome_android": "mirror", + "edge": "mirror", + "firefox": { + "version_added": false + }, + "firefox_android": "mirror", + "ie": { + "version_added": false + }, + "oculus": "mirror", + "opera": "mirror", + "opera_android": "mirror", + "safari": { + "version_added": false + }, + "safari_ios": "mirror", + "samsunginternet_android": "mirror", + "webview_android": "mirror" + }, + "status": { + "experimental": true, + "standard_track": true, + "deprecated": false + } + }, + "PageSwapEvent": { + "__compat": { + "description": "PageSwapEvent() constructor", + "mdn_url": "https://developer.mozilla.org/docs/Web/API/PageSwapEvent/PageSwapEvent", + "spec_url": "https://html.spec.whatwg.org/multipage/nav-history-apis.html#the-pageswapevent-interface", + "support": { + "chrome": { + "version_added": "124" + }, + "chrome_android": "mirror", + "edge": "mirror", + "firefox": { + "version_added": false + }, + "firefox_android": "mirror", + "ie": { + "version_added": false + }, + "oculus": "mirror", + "opera": "mirror", + "opera_android": "mirror", + "safari": { + "version_added": false + }, + "safari_ios": "mirror", + "samsunginternet_android": "mirror", + "webview_android": "mirror" + }, + "status": { + "experimental": true, + "standard_track": true, + "deprecated": false + } + } + }, + "activation": { + "__compat": { + "mdn_url": "https://developer.mozilla.org/docs/Web/API/PageSwapEvent/activation", + "spec_url": "https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-pageswapevent-activation", + "support": { + "chrome": { + "version_added": "124" + }, + "chrome_android": "mirror", + "edge": "mirror", + "firefox": { + "version_added": false + }, + "firefox_android": "mirror", + "ie": { + "version_added": false + }, + "oculus": "mirror", + "opera": "mirror", + "opera_android": "mirror", + "safari": { + "version_added": false + }, + "safari_ios": "mirror", + "samsunginternet_android": "mirror", + "webview_android": "mirror" + }, + "status": { + "experimental": true, + "standard_track": true, + "deprecated": false + } + } + }, + "viewTransition": { + "__compat": { + "mdn_url": "https://developer.mozilla.org/docs/Web/API/PageSwapEvent/viewTransition", + "spec_url": "https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-pageswapevent-viewtransition", + "support": { + "chrome": { + "version_added": "124" + }, + "chrome_android": "mirror", + "edge": "mirror", + "firefox": { + "version_added": false + }, + "firefox_android": "mirror", + "ie": { + "version_added": false + }, + "oculus": "mirror", + "opera": "mirror", + "opera_android": "mirror", + "safari": { + "version_added": false + }, + "safari_ios": "mirror", + "samsunginternet_android": "mirror", + "webview_android": "mirror" + }, + "status": { + "experimental": true, + "standard_track": true, + "deprecated": false + } + } + } + } + } +} diff --git a/api/Window.json b/api/Window.json index 634887d5af5f92..580f20d649ddf6 100644 --- a/api/Window.json +++ b/api/Window.json @@ -3713,6 +3713,41 @@ } } }, + "pagereveal_event": { + "__compat": { + "description": "pagereveal event", + "mdn_url": "https://developer.mozilla.org/docs/Web/API/Window/pagereveal_event", + "spec_url": "https://html.spec.whatwg.org/multipage/indices.html#event-pagereveal", + "support": { + "chrome": { + "version_added": "123" + }, + "chrome_android": "mirror", + "edge": "mirror", + "firefox": { + "version_added": false + }, + "firefox_android": "mirror", + "ie": { + "version_added": false + }, + "oculus": "mirror", + "opera": "mirror", + "opera_android": "mirror", + "safari": { + "version_added": false + }, + "safari_ios": "mirror", + "samsunginternet_android": "mirror", + "webview_android": "mirror" + }, + "status": { + "experimental": true, + "standard_track": true, + "deprecated": false + } + } + }, "pageshow_event": { "__compat": { "description": "pageshow event", @@ -3752,6 +3787,41 @@ } } }, + "pageswap_event": { + "__compat": { + "description": "pageswap event", + "mdn_url": "https://developer.mozilla.org/docs/Web/API/Window/pageswap_event", + "spec_url": "https://html.spec.whatwg.org/multipage/indices.html#event-pageswap", + "support": { + "chrome": { + "version_added": "124" + }, + "chrome_android": "mirror", + "edge": "mirror", + "firefox": { + "version_added": false + }, + "firefox_android": "mirror", + "ie": { + "version_added": false + }, + "oculus": "mirror", + "opera": "mirror", + "opera_android": "mirror", + "safari": { + "version_added": false + }, + "safari_ios": "mirror", + "samsunginternet_android": "mirror", + "webview_android": "mirror" + }, + "status": { + "experimental": true, + "standard_track": true, + "deprecated": false + } + } + }, "parent": { "__compat": { "mdn_url": "https://developer.mozilla.org/docs/Web/API/Window/parent", diff --git a/css/at-rules/view-transition.json b/css/at-rules/view-transition.json new file mode 100644 index 00000000000000..7df7c11ffa371c --- /dev/null +++ b/css/at-rules/view-transition.json @@ -0,0 +1,44 @@ +{ + "css": { + "at-rules": { + "view-transition": { + "__compat": { + "description": "@view-transition", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@view-transition", + "spec_url": "https://drafts.csswg.org/css-view-transitions-2/#view-transition-rule", + "tags": [ + "web-features:registered-custom-properties" + ], + "support": { + "chrome": { + "version_added": "124" + }, + "chrome_android": "mirror", + "edge": "mirror", + "firefox": { + "version_added": false + }, + "firefox_android": "mirror", + "ie": { + "version_added": false + }, + "oculus": "mirror", + "opera": "mirror", + "opera_android": "mirror", + "safari": { + "version_added": false + }, + "safari_ios": "mirror", + "samsunginternet_android": "mirror", + "webview_android": "mirror" + }, + "status": { + "experimental": true, + "standard_track": true, + "deprecated": false + } + } + } + } + } +} diff --git a/html/elements/link.json b/html/elements/link.json index 3c38aa648624a7..293fe9ce0aeb64 100644 --- a/html/elements/link.json +++ b/html/elements/link.json @@ -780,6 +780,41 @@ } } }, + "expect": { + "__compat": { + "description": "rel=expect", + "mdn_url": "https://developer.mozilla.org/docs/Web/HTML/Attributes/rel/expect", + "spec_url": "https://html.spec.whatwg.org/multipage/links.html#link-type-expect", + "support": { + "chrome": { + "version_added": "124" + }, + "chrome_android": "mirror", + "edge": "mirror", + "firefox": { + "version_added": false + }, + "firefox_android": "mirror", + "ie": { + "version_added": false + }, + "oculus": "mirror", + "opera": "mirror", + "opera_android": "mirror", + "safari": { + "version_added": false + }, + "safari_ios": "mirror", + "samsunginternet_android": "mirror", + "webview_android": "mirror" + }, + "status": { + "experimental": true, + "standard_track": true, + "deprecated": false + } + } + }, "icon": { "__compat": { "description": "rel=icon", From 4c47485086a1c35ea8ff7f9f62cd8c6984cd7d6a Mon Sep 17 00:00:00 2001 From: Chris Mills Date: Tue, 26 Mar 2024 14:31:48 +0000 Subject: [PATCH 2/4] Update css/at-rules/view-transition.json Co-authored-by: Florian Scholz --- css/at-rules/view-transition.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/css/at-rules/view-transition.json b/css/at-rules/view-transition.json index 7df7c11ffa371c..075792f9fdefc5 100644 --- a/css/at-rules/view-transition.json +++ b/css/at-rules/view-transition.json @@ -6,9 +6,6 @@ "description": "@view-transition", "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@view-transition", "spec_url": "https://drafts.csswg.org/css-view-transitions-2/#view-transition-rule", - "tags": [ - "web-features:registered-custom-properties" - ], "support": { "chrome": { "version_added": "124" From d2e91863f755854c9e50df6b28b640b8e91d2375 Mon Sep 17 00:00:00 2001 From: Chris Mills Date: Thu, 11 Apr 2024 09:05:32 +0100 Subject: [PATCH 3/4] Add flag information to features coming up as unsupported in the collector --- api/PageSwapEvent.json | 36 ++++++++++++++++++++++++++++++++---- 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/api/PageSwapEvent.json b/api/PageSwapEvent.json index 68e70fdec722d1..5255e3818ab2c3 100644 --- a/api/PageSwapEvent.json +++ b/api/PageSwapEvent.json @@ -6,7 +6,14 @@ "spec_url": "https://html.spec.whatwg.org/multipage/nav-history-apis.html#the-pageswapevent-interface", "support": { "chrome": { - "version_added": "124" + "version_added": "124", + "flags": [ + { + "type": "preference", + "name": "viewTransition API for navigations", + "value_to_set": "Enabled" + } + ] }, "chrome_android": "mirror", "edge": "mirror", @@ -40,7 +47,14 @@ "spec_url": "https://html.spec.whatwg.org/multipage/nav-history-apis.html#the-pageswapevent-interface", "support": { "chrome": { - "version_added": "124" + "version_added": "124", + "flags": [ + { + "type": "preference", + "name": "viewTransition API for navigations", + "value_to_set": "Enabled" + } + ] }, "chrome_android": "mirror", "edge": "mirror", @@ -74,7 +88,14 @@ "spec_url": "https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-pageswapevent-activation", "support": { "chrome": { - "version_added": "124" + "version_added": "124", + "flags": [ + { + "type": "preference", + "name": "viewTransition API for navigations", + "value_to_set": "Enabled" + } + ] }, "chrome_android": "mirror", "edge": "mirror", @@ -108,7 +129,14 @@ "spec_url": "https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-pageswapevent-viewtransition", "support": { "chrome": { - "version_added": "124" + "version_added": "124", + "flags": [ + { + "type": "preference", + "name": "viewTransition API for navigations", + "value_to_set": "Enabled" + } + ] }, "chrome_android": "mirror", "edge": "mirror", From 72eadeb1540b94416848bf556f325b898b207183 Mon Sep 17 00:00:00 2001 From: Chris Mills Date: Wed, 17 Apr 2024 11:14:20 +0100 Subject: [PATCH 4/4] Add flag information to PageRevealEvent --- api/PageRevealEvent.json | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/api/PageRevealEvent.json b/api/PageRevealEvent.json index e37d12d6fab50c..2d0da432ce91db 100644 --- a/api/PageRevealEvent.json +++ b/api/PageRevealEvent.json @@ -6,7 +6,14 @@ "spec_url": "https://html.spec.whatwg.org/multipage/nav-history-apis.html#the-pagerevealevent-interface", "support": { "chrome": { - "version_added": "123" + "version_added": "123", + "flags": [ + { + "type": "preference", + "name": "viewTransition API for navigations", + "value_to_set": "Enabled" + } + ] }, "chrome_android": "mirror", "edge": "mirror", @@ -40,7 +47,14 @@ "spec_url": "https://html.spec.whatwg.org/multipage/nav-history-apis.html#the-pagerevealevent-interface", "support": { "chrome": { - "version_added": "123" + "version_added": "123", + "flags": [ + { + "type": "preference", + "name": "viewTransition API for navigations", + "value_to_set": "Enabled" + } + ] }, "chrome_android": "mirror", "edge": "mirror", @@ -74,7 +88,14 @@ "spec_url": "https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-pagerevealevent-viewtransition", "support": { "chrome": { - "version_added": "123" + "version_added": "123", + "flags": [ + { + "type": "preference", + "name": "viewTransition API for navigations", + "value_to_set": "Enabled" + } + ] }, "chrome_android": "mirror", "edge": "mirror",