From 8d46a5622ebea45d098e2a9b95a79f4e70628921 Mon Sep 17 00:00:00 2001 From: dietrich ayala Date: Mon, 21 Oct 2024 13:33:47 +0700 Subject: [PATCH 01/11] Add window and window management --- features/window-management.yml | 24 ++++ features/window-management.yml.dist | 45 ++++++ features/window.yml | 43 ++++++ features/window.yml.dist | 215 ++++++++++++++++++++++++++++ 4 files changed, 327 insertions(+) create mode 100644 features/window-management.yml create mode 100644 features/window-management.yml.dist create mode 100644 features/window.yml create mode 100644 features/window.yml.dist diff --git a/features/window-management.yml b/features/window-management.yml new file mode 100644 index 00000000000..da09f9dd7db --- /dev/null +++ b/features/window-management.yml @@ -0,0 +1,24 @@ +name: Window Management +description: "The Window Management API allows you to query the device for information about its screens, and place content on specific screens, paving the way towards more effective multi-screen applications." +spec: https://w3c.github.io/window-management/ +compat_features: + - api.Element.requestFullscreen.options_screen_parameter + - api.Permissions.permission_window-management + - api.Screen.change_event + - api.Screen.isExtended + - api.ScreenDetailed + - api.ScreenDetailed.availLeft + - api.ScreenDetailed.availTop + - api.ScreenDetailed.devicePixelRatio + - api.ScreenDetailed.isInternal + - api.ScreenDetailed.isPrimary + - api.ScreenDetailed.label + - api.ScreenDetailed.left + - api.ScreenDetailed.top + - api.ScreenDetails + - api.ScreenDetails.currentScreen + - api.ScreenDetails.currentscreenchange_event + - api.ScreenDetails.screens + - api.ScreenDetails.screenschange_event + - api.Window.getScreenDetails + - http.headers.Permissions-Policy.window-management diff --git a/features/window-management.yml.dist b/features/window-management.yml.dist new file mode 100644 index 00000000000..9c78b636309 --- /dev/null +++ b/features/window-management.yml.dist @@ -0,0 +1,45 @@ +# Generated from: window-management.yml +# Do not edit this file by hand. Edit the source file instead! + +status: + baseline: false + support: + chrome: "111" + edge: "111" +compat_features: + # baseline: false + # support: + # chrome: "100" + # chrome_android: "100" + # edge: "100" + - api.Screen.change_event + - api.Screen.isExtended + - api.Window.getScreenDetails + - http.headers.Permissions-Policy.window-management + + # baseline: false + # support: + # chrome: "100" + # edge: "100" + - api.Element.requestFullscreen.options_screen_parameter + - api.ScreenDetailed + - api.ScreenDetailed.availLeft + - api.ScreenDetailed.availTop + - api.ScreenDetailed.devicePixelRatio + - api.ScreenDetailed.isInternal + - api.ScreenDetailed.isPrimary + - api.ScreenDetailed.label + - api.ScreenDetailed.left + - api.ScreenDetailed.top + - api.ScreenDetails + - api.ScreenDetails.currentScreen + - api.ScreenDetails.currentscreenchange_event + - api.ScreenDetails.screens + - api.ScreenDetails.screenschange_event + + # ⬇️ Same status as overall feature ⬇️ + # baseline: false + # support: + # chrome: "111" + # edge: "111" + - api.Permissions.permission_window-management diff --git a/features/window.yml b/features/window.yml new file mode 100644 index 00000000000..36c909bc9a5 --- /dev/null +++ b/features/window.yml @@ -0,0 +1,43 @@ +name: Window +description: "The Window object is home to a variety of functions, namespaces, objects, and constructors. Some of these are associated with the user interface window the document is loaded in, but many are items that need to be available in the global scope." +spec: https://html.spec.whatwg.org/multipage/nav-history-apis.html#the-window-object +status: + compute_from: api.Window +compat_features: + - api.Window + - api.Window.DOMContentLoaded_event + - api.Window.alert + - api.Window.blur_event + - api.Window.close + - api.Window.closed + - api.Window.confirm + - api.Window.document + - api.Window.error_event + - api.Window.focus + - api.Window.focus_event + - api.Window.frameElement + - api.Window.frames + - api.Window.history + - api.Window.languagechange_event + - api.Window.length + - api.Window.load_event + - api.Window.name + - api.Window.navigator + - api.Window.offline_event + - api.Window.online_event + - api.Window.open + - api.Window.opener + - api.Window.originAgentCluster + - api.Window.pagehide_event + - api.Window.pagereveal_event + - api.Window.pageshow_event + - api.Window.pageswap_event + - api.Window.parent + - api.Window.popstate_event + - api.Window.prompt + - api.Window.rejectionhandled_event + - api.Window.self + - api.Window.stop + - api.Window.top + - api.Window.unhandledrejection_event + - api.Window.window diff --git a/features/window.yml.dist b/features/window.yml.dist new file mode 100644 index 00000000000..7c7c5908aeb --- /dev/null +++ b/features/window.yml.dist @@ -0,0 +1,215 @@ +# Generated from: window.yml +# Do not edit this file by hand. Edit the source file instead! + +status: + baseline: high + baseline_low_date: 2015-07-29 + baseline_high_date: 2018-01-29 + support: + chrome: "1" + chrome_android: "18" + edge: "12" + firefox: "1" + firefox_android: "4" + safari: "1" + safari_ios: "1" +compat_features: + # ⬇️ Same status as overall feature ⬇️ + # baseline: high + # baseline_low_date: 2015-07-29 + # baseline_high_date: 2018-01-29 + # support: + # chrome: "1" + # chrome_android: "18" + # edge: "12" + # firefox: "1" + # firefox_android: "4" + # safari: "1" + # safari_ios: "1" + - api.Window + - api.Window.alert + - api.Window.close + - api.Window.closed + - api.Window.confirm + - api.Window.document + - api.Window.focus + - api.Window.frames + - api.Window.history + - api.Window.length + - api.Window.name + - api.Window.navigator + - api.Window.open + - api.Window.opener + - api.Window.prompt + + # baseline: high + # baseline_low_date: 2015-07-29 + # baseline_high_date: 2018-01-29 + # support: + # chrome: "1" + # chrome_android: "18" + # edge: "12" + # firefox: "1" + # firefox_android: "4" + # safari: "1.3" + # safari_ios: "1" + - api.Window.load_event + - api.Window.parent + + # baseline: high + # baseline_low_date: 2015-07-29 + # baseline_high_date: 2018-01-29 + # support: + # chrome: "1" + # chrome_android: "18" + # edge: "12" + # firefox: "1" + # firefox_android: "4" + # safari: "3" + # safari_ios: "1" + - api.Window.frameElement + - api.Window.self + - api.Window.top + - api.Window.window + + # baseline: high + # baseline_low_date: 2015-07-29 + # baseline_high_date: 2018-01-29 + # support: + # chrome: "1" + # chrome_android: "18" + # edge: "12" + # firefox: "1" + # firefox_android: "4" + # safari: "3.1" + # safari_ios: "2" + - api.Window.DOMContentLoaded_event + + # baseline: high + # baseline_low_date: 2015-07-29 + # baseline_high_date: 2018-01-29 + # support: + # chrome: "3" + # chrome_android: "18" + # edge: "12" + # firefox: "6" + # firefox_android: "6" + # safari: "5" + # safari_ios: "4.2" + - api.Window.pagehide_event + - api.Window.pageshow_event + + # baseline: high + # baseline_low_date: 2015-07-29 + # baseline_high_date: 2018-01-29 + # support: + # chrome: "3" + # chrome_android: "18" + # edge: "12" + # firefox: "9" + # firefox_android: "9" + # safari: "4" + # safari_ios: "3" + - api.Window.offline_event + - api.Window.online_event + + # baseline: high + # baseline_low_date: 2015-07-29 + # baseline_high_date: 2018-01-29 + # support: + # chrome: "5" + # chrome_android: "18" + # edge: "12" + # firefox: "4" + # firefox_android: "4" + # safari: "5" + # safari_ios: "4.2" + - api.Window.popstate_event + + # baseline: high + # baseline_low_date: 2015-07-29 + # baseline_high_date: 2018-01-29 + # support: + # chrome: "5" + # chrome_android: "18" + # edge: "12" + # firefox: "6" + # firefox_android: "6" + # safari: "5.1" + # safari_ios: "5" + - api.Window.blur_event + - api.Window.focus_event + + # baseline: high + # baseline_low_date: 2015-07-29 + # baseline_high_date: 2018-01-29 + # support: + # chrome: "10" + # chrome_android: "18" + # edge: "12" + # firefox: "6" + # firefox_android: "6" + # safari: "5.1" + # safari_ios: "5" + - api.Window.error_event + + # baseline: high + # baseline_low_date: 2016-08-02 + # baseline_high_date: 2019-02-02 + # support: + # chrome: "1" + # chrome_android: "18" + # edge: "14" + # firefox: "1" + # firefox_android: "4" + # safari: "3" + # safari_ios: "1" + - api.Window.stop + + # baseline: high + # baseline_low_date: 2020-01-15 + # baseline_high_date: 2022-07-15 + # support: + # chrome: "37" + # chrome_android: "37" + # edge: "79" + # firefox: "32" + # firefox_android: "4" + # safari: "10.1" + # safari_ios: "10.3" + - api.Window.languagechange_event + + # baseline: high + # baseline_low_date: 2020-07-28 + # baseline_high_date: 2023-01-28 + # support: + # chrome: "49" + # chrome_android: "49" + # edge: "79" + # firefox: "69" + # firefox_android: "79" + # safari: "11" + # safari_ios: "11.3" + - api.Window.rejectionhandled_event + - api.Window.unhandledrejection_event + + # baseline: false + # support: + # chrome: "90" + # chrome_android: "90" + # edge: "90" + - api.Window.originAgentCluster + + # baseline: false + # support: + # chrome: "123" + # chrome_android: "123" + # edge: "123" + - api.Window.pagereveal_event + + # baseline: false + # support: + # chrome: "124" + # chrome_android: "124" + # edge: "124" + - api.Window.pageswap_event From 53927a2f57f811216c60bc9cc05bd667555c9eaf Mon Sep 17 00:00:00 2001 From: dietrich ayala Date: Mon, 21 Oct 2024 13:58:34 +0700 Subject: [PATCH 02/11] move bits over to history --- features/history.yml | 2 ++ features/history.yml.dist | 14 ++++++++++++++ features/window.yml | 30 ++++++++++++++++++++++++++++-- features/window.yml.dist | 14 -------------- 4 files changed, 44 insertions(+), 16 deletions(-) diff --git a/features/history.yml b/features/history.yml index 0085516ff11..7558492df43 100644 --- a/features/history.yml +++ b/features/history.yml @@ -15,3 +15,5 @@ compat_features: - api.History.replaceState - api.History.scrollRestoration - api.History.state + - api.Window.history + - api.Window.popstate_event diff --git a/features/history.yml.dist b/features/history.yml.dist index 906576ccb4c..c9f5f5b1749 100644 --- a/features/history.yml.dist +++ b/features/history.yml.dist @@ -30,6 +30,7 @@ compat_features: - api.History.forward - api.History.go - api.History.length + - api.Window.history # ⬇️ Same status as overall feature ⬇️ # baseline: high @@ -46,6 +47,19 @@ compat_features: - api.History.pushState - api.History.replaceState + # baseline: high + # baseline_low_date: 2015-07-29 + # baseline_high_date: 2018-01-29 + # support: + # chrome: "5" + # chrome_android: "18" + # edge: "12" + # firefox: "4" + # firefox_android: "4" + # safari: "5" + # safari_ios: "4.2" + - api.Window.popstate_event + # baseline: high # baseline_low_date: 2015-07-29 # baseline_high_date: 2018-01-29 diff --git a/features/window.yml b/features/window.yml index 36c909bc9a5..299b52d6dc1 100644 --- a/features/window.yml +++ b/features/window.yml @@ -6,35 +6,61 @@ status: compat_features: - api.Window - api.Window.DOMContentLoaded_event + + # move to feature? - api.Window.alert + - api.Window.blur_event - api.Window.close - api.Window.closed + + # move to feature? - api.Window.confirm + - api.Window.document - api.Window.error_event - api.Window.focus - api.Window.focus_event + + # move to feature? - api.Window.frameElement - api.Window.frames - - api.Window.history + + # features/history.yml + #- api.Window.history + + # proposed in `language` feature in #1931 - api.Window.languagechange_event + - api.Window.length - api.Window.load_event - api.Window.name + + # proposed in `navigator` feature in #1931 - api.Window.navigator + + # proposed in `online` feature in #1931 - api.Window.offline_event - api.Window.online_event + - api.Window.open - api.Window.opener - api.Window.originAgentCluster + + # move to feature? - api.Window.pagehide_event - api.Window.pagereveal_event - api.Window.pageshow_event - api.Window.pageswap_event + - api.Window.parent - - api.Window.popstate_event + + # features/history.yml + #- api.Window.popstate_event + + # move to feature? - api.Window.prompt + - api.Window.rejectionhandled_event - api.Window.self - api.Window.stop diff --git a/features/window.yml.dist b/features/window.yml.dist index 7c7c5908aeb..368f28c2c80 100644 --- a/features/window.yml.dist +++ b/features/window.yml.dist @@ -34,7 +34,6 @@ compat_features: - api.Window.document - api.Window.focus - api.Window.frames - - api.Window.history - api.Window.length - api.Window.name - api.Window.navigator @@ -113,19 +112,6 @@ compat_features: - api.Window.offline_event - api.Window.online_event - # baseline: high - # baseline_low_date: 2015-07-29 - # baseline_high_date: 2018-01-29 - # support: - # chrome: "5" - # chrome_android: "18" - # edge: "12" - # firefox: "4" - # firefox_android: "4" - # safari: "5" - # safari_ios: "4.2" - - api.Window.popstate_event - # baseline: high # baseline_low_date: 2015-07-29 # baseline_high_date: 2018-01-29 From 860c33b22dd88d667aecfee9b3be4bcc300f7ab3 Mon Sep 17 00:00:00 2001 From: dietrich ayala Date: Tue, 22 Oct 2024 11:34:00 +0700 Subject: [PATCH 03/11] move dialogs to dialog --- features/dialog.yml | 15 ++++++++++ features/dialog.yml.dist | 27 ++++++++++++++++++ features/window.yml | 33 +++++++++++----------- features/window.yml.dist | 59 ---------------------------------------- 4 files changed, 59 insertions(+), 75 deletions(-) diff --git a/features/dialog.yml b/features/dialog.yml index 992e93fa825..cf98cf96224 100644 --- a/features/dialog.yml +++ b/features/dialog.yml @@ -3,3 +3,18 @@ description: The `` HTML element represents a modal or non-modal dialog spec: https://html.spec.whatwg.org/multipage/interactive-elements.html#the-dialog-element group: html-elements caniuse: dialog +compat_features: + - api.HTMLDialogElement + - api.HTMLDialogElement.cancel_event + - api.HTMLDialogElement.close + - api.HTMLDialogElement.close_event + - api.HTMLDialogElement.open + - api.HTMLDialogElement.returnValue + - api.HTMLDialogElement.show + - api.HTMLDialogElement.showModal + - api.Window.alert + - api.Window.confirm + - api.Window.prompt + - css.selectors.backdrop.dialog + - html.elements.dialog + - html.elements.dialog.open diff --git a/features/dialog.yml.dist b/features/dialog.yml.dist index 3a0d7bcfda5..da2cae1b045 100644 --- a/features/dialog.yml.dist +++ b/features/dialog.yml.dist @@ -14,6 +14,33 @@ status: safari: "15.4" safari_ios: "15.4" compat_features: + # baseline: high + # baseline_low_date: 2015-07-29 + # baseline_high_date: 2018-01-29 + # support: + # chrome: "1" + # chrome_android: "18" + # edge: "12" + # firefox: "1" + # firefox_android: "4" + # safari: "1" + # safari_ios: "1" + - api.Window.alert + - api.Window.confirm + - api.Window.prompt + + # ⬇️ Same status as overall feature ⬇️ + # baseline: high + # baseline_low_date: 2022-03-14 + # baseline_high_date: 2024-09-14 + # support: + # chrome: "37" + # chrome_android: "37" + # edge: "79" + # firefox: "98" + # firefox_android: "98" + # safari: "15.4" + # safari_ios: "15.4" - api.HTMLDialogElement - api.HTMLDialogElement.cancel_event - api.HTMLDialogElement.close diff --git a/features/window.yml b/features/window.yml index 299b52d6dc1..cab53fe1272 100644 --- a/features/window.yml +++ b/features/window.yml @@ -7,22 +7,23 @@ compat_features: - api.Window - api.Window.DOMContentLoaded_event - # move to feature? - - api.Window.alert + # features/dialog.yml + #- api.Window.alert - api.Window.blur_event - api.Window.close - api.Window.closed - # move to feature? - - api.Window.confirm + # features/dialog.yml + #- api.Window.confirm + # hm, could go in #1983 - api.Window.document + - api.Window.error_event - api.Window.focus - api.Window.focus_event - # move to feature? - api.Window.frameElement - api.Window.frames @@ -30,36 +31,36 @@ compat_features: #- api.Window.history # proposed in `language` feature in #1931 - - api.Window.languagechange_event + #- api.Window.languagechange_event - api.Window.length - api.Window.load_event - api.Window.name # proposed in `navigator` feature in #1931 - - api.Window.navigator + #- api.Window.navigator # proposed in `online` feature in #1931 - - api.Window.offline_event - - api.Window.online_event + #- api.Window.offline_event + #- api.Window.online_event - api.Window.open - api.Window.opener - api.Window.originAgentCluster - # move to feature? - - api.Window.pagehide_event - - api.Window.pagereveal_event - - api.Window.pageshow_event - - api.Window.pageswap_event + # proposed in features in #2012 + #- api.Window.pagehide_event + #- api.Window.pagereveal_event + #- api.Window.pageshow_event + #- api.Window.pageswap_event - api.Window.parent # features/history.yml #- api.Window.popstate_event - # move to feature? - - api.Window.prompt + # features/dialog.yml + #- api.Window.prompt - api.Window.rejectionhandled_event - api.Window.self diff --git a/features/window.yml.dist b/features/window.yml.dist index 368f28c2c80..0dec8e3d285 100644 --- a/features/window.yml.dist +++ b/features/window.yml.dist @@ -27,19 +27,15 @@ compat_features: # safari: "1" # safari_ios: "1" - api.Window - - api.Window.alert - api.Window.close - api.Window.closed - - api.Window.confirm - api.Window.document - api.Window.focus - api.Window.frames - api.Window.length - api.Window.name - - api.Window.navigator - api.Window.open - api.Window.opener - - api.Window.prompt # baseline: high # baseline_low_date: 2015-07-29 @@ -84,34 +80,6 @@ compat_features: # safari_ios: "2" - api.Window.DOMContentLoaded_event - # baseline: high - # baseline_low_date: 2015-07-29 - # baseline_high_date: 2018-01-29 - # support: - # chrome: "3" - # chrome_android: "18" - # edge: "12" - # firefox: "6" - # firefox_android: "6" - # safari: "5" - # safari_ios: "4.2" - - api.Window.pagehide_event - - api.Window.pageshow_event - - # baseline: high - # baseline_low_date: 2015-07-29 - # baseline_high_date: 2018-01-29 - # support: - # chrome: "3" - # chrome_android: "18" - # edge: "12" - # firefox: "9" - # firefox_android: "9" - # safari: "4" - # safari_ios: "3" - - api.Window.offline_event - - api.Window.online_event - # baseline: high # baseline_low_date: 2015-07-29 # baseline_high_date: 2018-01-29 @@ -152,19 +120,6 @@ compat_features: # safari_ios: "1" - api.Window.stop - # baseline: high - # baseline_low_date: 2020-01-15 - # baseline_high_date: 2022-07-15 - # support: - # chrome: "37" - # chrome_android: "37" - # edge: "79" - # firefox: "32" - # firefox_android: "4" - # safari: "10.1" - # safari_ios: "10.3" - - api.Window.languagechange_event - # baseline: high # baseline_low_date: 2020-07-28 # baseline_high_date: 2023-01-28 @@ -185,17 +140,3 @@ compat_features: # chrome_android: "90" # edge: "90" - api.Window.originAgentCluster - - # baseline: false - # support: - # chrome: "123" - # chrome_android: "123" - # edge: "123" - - api.Window.pagereveal_event - - # baseline: false - # support: - # chrome: "124" - # chrome_android: "124" - # edge: "124" - - api.Window.pageswap_event From 2c2ac700826f7281056b22e38457d9ae232be6ff Mon Sep 17 00:00:00 2001 From: dietrich ayala Date: Tue, 12 Nov 2024 14:30:39 +0700 Subject: [PATCH 04/11] merge, regen --- features/window.yml.dist | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/features/window.yml.dist b/features/window.yml.dist index 0dec8e3d285..1de63107f6b 100644 --- a/features/window.yml.dist +++ b/features/window.yml.dist @@ -34,7 +34,6 @@ compat_features: - api.Window.frames - api.Window.length - api.Window.name - - api.Window.open - api.Window.opener # baseline: high @@ -134,6 +133,16 @@ compat_features: - api.Window.rejectionhandled_event - api.Window.unhandledrejection_event + # baseline: false + # support: + # chrome: "1" + # chrome_android: "18" + # edge: "12" + # firefox: "1" + # firefox_android: "4" + # safari: "1" + - api.Window.open + # baseline: false # support: # chrome: "90" From 9f9a69ffbcfe747505f2236867a08b400eaf1c87 Mon Sep 17 00:00:00 2001 From: dietrich ayala Date: Thu, 14 Nov 2024 13:03:37 +0700 Subject: [PATCH 05/11] remove outdated commentary --- features/window.yml | 40 ---------------------------------------- 1 file changed, 40 deletions(-) diff --git a/features/window.yml b/features/window.yml index cab53fe1272..d5d03f31bb5 100644 --- a/features/window.yml +++ b/features/window.yml @@ -6,62 +6,22 @@ status: compat_features: - api.Window - api.Window.DOMContentLoaded_event - - # features/dialog.yml - #- api.Window.alert - - api.Window.blur_event - api.Window.close - api.Window.closed - - # features/dialog.yml - #- api.Window.confirm - - # hm, could go in #1983 - api.Window.document - - api.Window.error_event - api.Window.focus - api.Window.focus_event - - api.Window.frameElement - api.Window.frames - - # features/history.yml - #- api.Window.history - - # proposed in `language` feature in #1931 - #- api.Window.languagechange_event - - api.Window.length - api.Window.load_event - api.Window.name - - # proposed in `navigator` feature in #1931 - #- api.Window.navigator - - # proposed in `online` feature in #1931 - #- api.Window.offline_event - #- api.Window.online_event - - api.Window.open - api.Window.opener - api.Window.originAgentCluster - - # proposed in features in #2012 - #- api.Window.pagehide_event - #- api.Window.pagereveal_event - #- api.Window.pageshow_event - #- api.Window.pageswap_event - - api.Window.parent - - # features/history.yml - #- api.Window.popstate_event - - # features/dialog.yml - #- api.Window.prompt - - api.Window.rejectionhandled_event - api.Window.self - api.Window.stop From 60b9068659b571201690801bd3558a8ad793b265 Mon Sep 17 00:00:00 2001 From: dietrich ayala Date: Thu, 14 Nov 2024 13:19:01 +0700 Subject: [PATCH 06/11] update desc --- features/window-management.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/window-management.yml b/features/window-management.yml index da09f9dd7db..ed31fa0cb8b 100644 --- a/features/window-management.yml +++ b/features/window-management.yml @@ -1,5 +1,5 @@ name: Window Management -description: "The Window Management API allows you to query the device for information about its screens, and place content on specific screens, paving the way towards more effective multi-screen applications." +description: "The Window Management API makes it possible to build multi-screen applications by providing access to information about the screens on a device, and to place content on a specific screen." spec: https://w3c.github.io/window-management/ compat_features: - api.Element.requestFullscreen.options_screen_parameter From b9782a24672cb43e0ef3170d9f3d38ce157c1eb2 Mon Sep 17 00:00:00 2001 From: Dietrich Ayala <50103+autonome@users.noreply.github.com> Date: Mon, 18 Nov 2024 21:16:28 +0700 Subject: [PATCH 07/11] Update features/window-management.yml Co-authored-by: Daniel D. Beck --- features/window-management.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/window-management.yml b/features/window-management.yml index ed31fa0cb8b..6f4a849d451 100644 --- a/features/window-management.yml +++ b/features/window-management.yml @@ -1,4 +1,4 @@ -name: Window Management +name: Window management description: "The Window Management API makes it possible to build multi-screen applications by providing access to information about the screens on a device, and to place content on a specific screen." spec: https://w3c.github.io/window-management/ compat_features: From e277878be112f080033efa6c43aa565557eebe72 Mon Sep 17 00:00:00 2001 From: Dietrich Ayala <50103+autonome@users.noreply.github.com> Date: Mon, 18 Nov 2024 21:16:57 +0700 Subject: [PATCH 08/11] Update features/window-management.yml Co-authored-by: Daniel D. Beck --- features/window-management.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/window-management.yml b/features/window-management.yml index 6f4a849d451..a6536a71dde 100644 --- a/features/window-management.yml +++ b/features/window-management.yml @@ -1,5 +1,5 @@ name: Window management -description: "The Window Management API makes it possible to build multi-screen applications by providing access to information about the screens on a device, and to place content on a specific screen." +description: "The `window.getScreenDetails()` method gets information about the screens on a device, which you can use to place new windows on a specific screen with `window.open()`. spec: https://w3c.github.io/window-management/ compat_features: - api.Element.requestFullscreen.options_screen_parameter From 462d6c9b69b858898cf93f21f186a8c867c75071 Mon Sep 17 00:00:00 2001 From: Dietrich Ayala <50103+autonome@users.noreply.github.com> Date: Mon, 18 Nov 2024 21:17:32 +0700 Subject: [PATCH 09/11] Update features/window.yml Co-authored-by: Daniel D. Beck --- features/window.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/window.yml b/features/window.yml index d5d03f31bb5..8acba83ff10 100644 --- a/features/window.yml +++ b/features/window.yml @@ -1,5 +1,5 @@ name: Window -description: "The Window object is home to a variety of functions, namespaces, objects, and constructors. Some of these are associated with the user interface window the document is loaded in, but many are items that need to be available in the global scope." +description: "The `window` global object represents a browser tab or iframe and its relationship to the document and other tabs. It's also a generic global object, under which many other APIs are located." spec: https://html.spec.whatwg.org/multipage/nav-history-apis.html#the-window-object status: compute_from: api.Window From 9e29afe5ddedade0f38c4fb6b4ed3e5ba2bd649b Mon Sep 17 00:00:00 2001 From: dietrich ayala Date: Mon, 18 Nov 2024 15:29:38 +0100 Subject: [PATCH 10/11] review fixes --- features/backdrop.yml | 1 + features/backdrop.yml.dist | 13 +++++++++++++ features/dialog.yml | 4 ---- features/dialog.yml.dist | 28 ---------------------------- features/dom.yml | 1 + features/dom.yml.dist | 1 + features/history.yml | 2 +- features/window.yml | 4 ---- features/window.yml.dist | 22 ---------------------- 9 files changed, 17 insertions(+), 59 deletions(-) diff --git a/features/backdrop.yml b/features/backdrop.yml index db0a4fbdbf9..df5d25c9492 100644 --- a/features/backdrop.yml +++ b/features/backdrop.yml @@ -6,4 +6,5 @@ status: compute_from: css.selectors.backdrop compat_features: - css.selectors.backdrop + - css.selectors.backdrop.dialog - css.selectors.backdrop.inherit_from_originating_element diff --git a/features/backdrop.yml.dist b/features/backdrop.yml.dist index 8db0ff094fb..657f9630ade 100644 --- a/features/backdrop.yml.dist +++ b/features/backdrop.yml.dist @@ -28,6 +28,19 @@ compat_features: # safari_ios: "15.4" - css.selectors.backdrop + # baseline: high + # baseline_low_date: 2022-03-14 + # baseline_high_date: 2024-09-14 + # support: + # chrome: "37" + # chrome_android: "37" + # edge: "79" + # firefox: "98" + # firefox_android: "98" + # safari: "15.4" + # safari_ios: "15.4" + - css.selectors.backdrop.dialog + # baseline: low # baseline_low_date: 2024-03-05 # support: diff --git a/features/dialog.yml b/features/dialog.yml index cf98cf96224..9842c2bc1b9 100644 --- a/features/dialog.yml +++ b/features/dialog.yml @@ -12,9 +12,5 @@ compat_features: - api.HTMLDialogElement.returnValue - api.HTMLDialogElement.show - api.HTMLDialogElement.showModal - - api.Window.alert - - api.Window.confirm - - api.Window.prompt - - css.selectors.backdrop.dialog - html.elements.dialog - html.elements.dialog.open diff --git a/features/dialog.yml.dist b/features/dialog.yml.dist index da2cae1b045..385ed4bbda6 100644 --- a/features/dialog.yml.dist +++ b/features/dialog.yml.dist @@ -14,33 +14,6 @@ status: safari: "15.4" safari_ios: "15.4" compat_features: - # baseline: high - # baseline_low_date: 2015-07-29 - # baseline_high_date: 2018-01-29 - # support: - # chrome: "1" - # chrome_android: "18" - # edge: "12" - # firefox: "1" - # firefox_android: "4" - # safari: "1" - # safari_ios: "1" - - api.Window.alert - - api.Window.confirm - - api.Window.prompt - - # ⬇️ Same status as overall feature ⬇️ - # baseline: high - # baseline_low_date: 2022-03-14 - # baseline_high_date: 2024-09-14 - # support: - # chrome: "37" - # chrome_android: "37" - # edge: "79" - # firefox: "98" - # firefox_android: "98" - # safari: "15.4" - # safari_ios: "15.4" - api.HTMLDialogElement - api.HTMLDialogElement.cancel_event - api.HTMLDialogElement.close @@ -49,6 +22,5 @@ compat_features: - api.HTMLDialogElement.returnValue - api.HTMLDialogElement.show - api.HTMLDialogElement.showModal - - css.selectors.backdrop.dialog - html.elements.dialog - html.elements.dialog.open diff --git a/features/dom.yml b/features/dom.yml index 0f23d2a2d80..0a9fae3a6e6 100644 --- a/features/dom.yml +++ b/features/dom.yml @@ -274,4 +274,5 @@ compat_features: - api.TreeWalker.previousSibling - api.TreeWalker.root - api.TreeWalker.whatToShow + - api.Window.document - api.XMLDocument diff --git a/features/dom.yml.dist b/features/dom.yml.dist index b94bc919667..65dcaa601cc 100644 --- a/features/dom.yml.dist +++ b/features/dom.yml.dist @@ -119,6 +119,7 @@ compat_features: - api.ProcessingInstruction.target - api.Text - api.Text.splitText + - api.Window.document # baseline: high # baseline_low_date: 2015-07-29 diff --git a/features/history.yml b/features/history.yml index 7558492df43..567feeb65a0 100644 --- a/features/history.yml +++ b/features/history.yml @@ -1,5 +1,5 @@ name: History -description: "The History API manipulates the browser session history, from navigations to state management, in the tab or frame that the current page is loaded in." +description: "The `window.history` API manipulates the browser session history, from navigations to state management, in the tab or frame that the current page is loaded in." spec: https://html.spec.whatwg.org/multipage/nav-history-apis.html#the-history-interface caniuse: history # This gets the feature closest to matching Caniuse. diff --git a/features/window.yml b/features/window.yml index d5d03f31bb5..cb9454756e6 100644 --- a/features/window.yml +++ b/features/window.yml @@ -9,7 +9,6 @@ compat_features: - api.Window.blur_event - api.Window.close - api.Window.closed - - api.Window.document - api.Window.error_event - api.Window.focus - api.Window.focus_event @@ -20,11 +19,8 @@ compat_features: - api.Window.name - api.Window.open - api.Window.opener - - api.Window.originAgentCluster - api.Window.parent - - api.Window.rejectionhandled_event - api.Window.self - api.Window.stop - api.Window.top - - api.Window.unhandledrejection_event - api.Window.window diff --git a/features/window.yml.dist b/features/window.yml.dist index 1de63107f6b..8fd0cc7924f 100644 --- a/features/window.yml.dist +++ b/features/window.yml.dist @@ -29,7 +29,6 @@ compat_features: - api.Window - api.Window.close - api.Window.closed - - api.Window.document - api.Window.focus - api.Window.frames - api.Window.length @@ -119,20 +118,6 @@ compat_features: # safari_ios: "1" - api.Window.stop - # baseline: high - # baseline_low_date: 2020-07-28 - # baseline_high_date: 2023-01-28 - # support: - # chrome: "49" - # chrome_android: "49" - # edge: "79" - # firefox: "69" - # firefox_android: "79" - # safari: "11" - # safari_ios: "11.3" - - api.Window.rejectionhandled_event - - api.Window.unhandledrejection_event - # baseline: false # support: # chrome: "1" @@ -142,10 +127,3 @@ compat_features: # firefox_android: "4" # safari: "1" - api.Window.open - - # baseline: false - # support: - # chrome: "90" - # chrome_android: "90" - # edge: "90" - - api.Window.originAgentCluster From ae1a5f628b16d9d591440ea847dacd03d4237040 Mon Sep 17 00:00:00 2001 From: dietrich ayala Date: Mon, 18 Nov 2024 15:35:49 +0100 Subject: [PATCH 11/11] fix missing quote --- features/window-management.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/window-management.yml b/features/window-management.yml index a6536a71dde..5668983e4bc 100644 --- a/features/window-management.yml +++ b/features/window-management.yml @@ -1,5 +1,5 @@ name: Window management -description: "The `window.getScreenDetails()` method gets information about the screens on a device, which you can use to place new windows on a specific screen with `window.open()`. +description: "The `window.getScreenDetails()` method gets information about the screens on a device, which you can use to place new windows on a specific screen with `window.open()`." spec: https://w3c.github.io/window-management/ compat_features: - api.Element.requestFullscreen.options_screen_parameter