From 1f2eccf92a1743ca3a63233cad896a313a2fe1c7 Mon Sep 17 00:00:00 2001 From: dietrich ayala Date: Fri, 4 Oct 2024 17:10:56 +0700 Subject: [PATCH 1/9] update desc, add compute_from rationale --- features/draft/spec/html.yml | 6 ---- features/draft/spec/html.yml.dist | 38 ---------------------- features/imagedata.yml | 15 +++++++++ features/imagedata.yml.dist | 54 +++++++++++++++++++++++++++++++ 4 files changed, 69 insertions(+), 44 deletions(-) create mode 100644 features/imagedata.yml create mode 100644 features/imagedata.yml.dist diff --git a/features/draft/spec/html.yml b/features/draft/spec/html.yml index cfade7b5b3f..dd261e93ad0 100644 --- a/features/draft/spec/html.yml +++ b/features/draft/spec/html.yml @@ -252,12 +252,6 @@ compat_features: - api.History.replaceState - api.History.scrollRestoration - api.History.state - - api.ImageData - - api.ImageData.ImageData - - api.ImageData.colorSpace - - api.ImageData.data - - api.ImageData.height - - api.ImageData.width - api.Location - api.Location.ancestorOrigins - api.Location.assign diff --git a/features/draft/spec/html.yml.dist b/features/draft/spec/html.yml.dist index 43ba815d852..8c9966b7c56 100644 --- a/features/draft/spec/html.yml.dist +++ b/features/draft/spec/html.yml.dist @@ -367,22 +367,6 @@ compat_features: # safari_ios: ≤3.2 - html.global_attributes.contenteditable - # baseline: high - # baseline_low_date: 2015-07-29 - # baseline_high_date: 2018-01-29 - # support: - # chrome: "1" - # chrome_android: "18" - # edge: "12" - # firefox: "3.5" - # firefox_android: "4" - # safari: "3.1" - # safari_ios: "2" - - api.ImageData - - api.ImageData.data - - api.ImageData.height - - api.ImageData.width - # baseline: high # baseline_low_date: 2015-07-29 # baseline_high_date: 2018-01-29 @@ -1785,19 +1769,6 @@ compat_features: # safari_ios: "7" - api.TrackEvent.TrackEvent - # baseline: high - # baseline_low_date: 2016-08-02 - # baseline_high_date: 2019-02-02 - # support: - # chrome: "36" - # chrome_android: "36" - # edge: "14" - # firefox: "29" - # firefox_android: "29" - # safari: "8" - # safari_ios: "8" - - api.ImageData.ImageData - # baseline: high # baseline_low_date: 2016-08-02 # baseline_high_date: 2019-02-02 @@ -3478,15 +3449,6 @@ compat_features: - api.HTMLVideoElement.playsInline - html.elements.video.playsinline - # baseline: false - # support: - # chrome: "92" - # chrome_android: "92" - # edge: "92" - # safari: "15.2" - # safari_ios: "15.2" - - api.ImageData.colorSpace - # baseline: false # support: # chrome: "99" diff --git a/features/imagedata.yml b/features/imagedata.yml new file mode 100644 index 00000000000..289986acdb4 --- /dev/null +++ b/features/imagedata.yml @@ -0,0 +1,15 @@ +name: ImageData +description: "`ImageData` represents pixel data for a particular area inside a `Canvas` element, in order to manipulate that part of the canvas or draw images to it." +spec: https://html.spec.whatwg.org/multipage/canvas.html#pixel-manipulation +group: canvas +# `.colorspace` is not yet implemented in Firefox but the core feature is +# baseline high for a long time. +status: + compute_from: api.ImageData +compat_features: + - api.ImageData + - api.ImageData.ImageData + - api.ImageData.colorSpace + - api.ImageData.data + - api.ImageData.height + - api.ImageData.width diff --git a/features/imagedata.yml.dist b/features/imagedata.yml.dist new file mode 100644 index 00000000000..f518c77b8cd --- /dev/null +++ b/features/imagedata.yml.dist @@ -0,0 +1,54 @@ +# Generated from: imagedata.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: "3.5" + firefox_android: "4" + safari: "3.1" + safari_ios: "2" +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: "3.5" + # firefox_android: "4" + # safari: "3.1" + # safari_ios: "2" + - api.ImageData + - api.ImageData.data + - api.ImageData.height + - api.ImageData.width + + # baseline: high + # baseline_low_date: 2016-08-02 + # baseline_high_date: 2019-02-02 + # support: + # chrome: "36" + # chrome_android: "36" + # edge: "14" + # firefox: "29" + # firefox_android: "29" + # safari: "8" + # safari_ios: "8" + - api.ImageData.ImageData + + # baseline: false + # support: + # chrome: "92" + # chrome_android: "92" + # edge: "92" + # safari: "15.2" + # safari_ios: "15.2" + - api.ImageData.colorSpace From e43e39adeb14685812b2d53c82ba63e8257f620a Mon Sep 17 00:00:00 2001 From: dietrich ayala Date: Mon, 7 Oct 2024 09:35:53 +0700 Subject: [PATCH 2/9] Revert "update desc, add compute_from rationale" This reverts commit 1f2eccf92a1743ca3a63233cad896a313a2fe1c7. --- features/draft/spec/html.yml | 6 ++++ features/draft/spec/html.yml.dist | 38 ++++++++++++++++++++++ features/imagedata.yml | 15 --------- features/imagedata.yml.dist | 54 ------------------------------- 4 files changed, 44 insertions(+), 69 deletions(-) delete mode 100644 features/imagedata.yml delete mode 100644 features/imagedata.yml.dist diff --git a/features/draft/spec/html.yml b/features/draft/spec/html.yml index dd261e93ad0..cfade7b5b3f 100644 --- a/features/draft/spec/html.yml +++ b/features/draft/spec/html.yml @@ -252,6 +252,12 @@ compat_features: - api.History.replaceState - api.History.scrollRestoration - api.History.state + - api.ImageData + - api.ImageData.ImageData + - api.ImageData.colorSpace + - api.ImageData.data + - api.ImageData.height + - api.ImageData.width - api.Location - api.Location.ancestorOrigins - api.Location.assign diff --git a/features/draft/spec/html.yml.dist b/features/draft/spec/html.yml.dist index 8c9966b7c56..43ba815d852 100644 --- a/features/draft/spec/html.yml.dist +++ b/features/draft/spec/html.yml.dist @@ -367,6 +367,22 @@ compat_features: # safari_ios: ≤3.2 - html.global_attributes.contenteditable + # baseline: high + # baseline_low_date: 2015-07-29 + # baseline_high_date: 2018-01-29 + # support: + # chrome: "1" + # chrome_android: "18" + # edge: "12" + # firefox: "3.5" + # firefox_android: "4" + # safari: "3.1" + # safari_ios: "2" + - api.ImageData + - api.ImageData.data + - api.ImageData.height + - api.ImageData.width + # baseline: high # baseline_low_date: 2015-07-29 # baseline_high_date: 2018-01-29 @@ -1769,6 +1785,19 @@ compat_features: # safari_ios: "7" - api.TrackEvent.TrackEvent + # baseline: high + # baseline_low_date: 2016-08-02 + # baseline_high_date: 2019-02-02 + # support: + # chrome: "36" + # chrome_android: "36" + # edge: "14" + # firefox: "29" + # firefox_android: "29" + # safari: "8" + # safari_ios: "8" + - api.ImageData.ImageData + # baseline: high # baseline_low_date: 2016-08-02 # baseline_high_date: 2019-02-02 @@ -3449,6 +3478,15 @@ compat_features: - api.HTMLVideoElement.playsInline - html.elements.video.playsinline + # baseline: false + # support: + # chrome: "92" + # chrome_android: "92" + # edge: "92" + # safari: "15.2" + # safari_ios: "15.2" + - api.ImageData.colorSpace + # baseline: false # support: # chrome: "99" diff --git a/features/imagedata.yml b/features/imagedata.yml deleted file mode 100644 index 289986acdb4..00000000000 --- a/features/imagedata.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: ImageData -description: "`ImageData` represents pixel data for a particular area inside a `Canvas` element, in order to manipulate that part of the canvas or draw images to it." -spec: https://html.spec.whatwg.org/multipage/canvas.html#pixel-manipulation -group: canvas -# `.colorspace` is not yet implemented in Firefox but the core feature is -# baseline high for a long time. -status: - compute_from: api.ImageData -compat_features: - - api.ImageData - - api.ImageData.ImageData - - api.ImageData.colorSpace - - api.ImageData.data - - api.ImageData.height - - api.ImageData.width diff --git a/features/imagedata.yml.dist b/features/imagedata.yml.dist deleted file mode 100644 index f518c77b8cd..00000000000 --- a/features/imagedata.yml.dist +++ /dev/null @@ -1,54 +0,0 @@ -# Generated from: imagedata.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: "3.5" - firefox_android: "4" - safari: "3.1" - safari_ios: "2" -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: "3.5" - # firefox_android: "4" - # safari: "3.1" - # safari_ios: "2" - - api.ImageData - - api.ImageData.data - - api.ImageData.height - - api.ImageData.width - - # baseline: high - # baseline_low_date: 2016-08-02 - # baseline_high_date: 2019-02-02 - # support: - # chrome: "36" - # chrome_android: "36" - # edge: "14" - # firefox: "29" - # firefox_android: "29" - # safari: "8" - # safari_ios: "8" - - api.ImageData.ImageData - - # baseline: false - # support: - # chrome: "92" - # chrome_android: "92" - # edge: "92" - # safari: "15.2" - # safari_ios: "15.2" - - api.ImageData.colorSpace From ae76b12513d37f8a4686d26af131b7141d03d8b8 Mon Sep 17 00:00:00 2001 From: dietrich ayala Date: Mon, 7 Oct 2024 11:40:12 +0700 Subject: [PATCH 3/9] Add location feature --- features/location.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 features/location.yml diff --git a/features/location.yml b/features/location.yml new file mode 100644 index 00000000000..a0342e8f075 --- /dev/null +++ b/features/location.yml @@ -0,0 +1,22 @@ +name: Location +description: "The `Location` global object represents the current address of the web page loaded in the browser. It makes all component parts of the address accessible and can be manipulated to initiate navigations." +spec: https://html.spec.whatwg.org/multipage/nav-history-apis.html#the-location-interface +# `ancestorOrigins` makes this baseline false but is not required for usage of the feature. +status: + compute_from: api.Location +compat_features: + - api.Location + - api.Location.ancestorOrigins + - api.Location.assign + - api.Location.hash + - api.Location.host + - api.Location.hostname + - api.Location.href + - api.Location.origin + - api.Location.pathname + - api.Location.port + - api.Location.protocol + - api.Location.reload + - api.Location.replace + - api.Location.search + - api.Location.toString From ffd6341ae8786285818b88e8293cb6986e365b6f Mon Sep 17 00:00:00 2001 From: dietrich ayala Date: Mon, 7 Oct 2024 11:41:28 +0700 Subject: [PATCH 4/9] add dist --- features/location.yml.dist | 87 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 features/location.yml.dist diff --git a/features/location.yml.dist b/features/location.yml.dist new file mode 100644 index 00000000000..efd9b259c67 --- /dev/null +++ b/features/location.yml.dist @@ -0,0 +1,87 @@ +# Generated from: location.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.Location + - api.Location.hash + - api.Location.host + - api.Location.hostname + - api.Location.href + - api.Location.pathname + - api.Location.port + - api.Location.protocol + - api.Location.reload + - api.Location.replace + - api.Location.search + + # 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.Location.assign + + # baseline: high + # baseline_low_date: 2015-07-29 + # baseline_high_date: 2018-01-29 + # support: + # chrome: "8" + # chrome_android: "18" + # edge: "12" + # firefox: "21" + # firefox_android: "21" + # safari: "5.1" + # safari_ios: "5" + - api.Location.origin + + # baseline: high + # baseline_low_date: 2016-07-27 + # baseline_high_date: 2019-01-27 + # support: + # chrome: "52" + # chrome_android: "52" + # edge: "12" + # firefox: "22" + # firefox_android: "22" + # safari: "1" + # safari_ios: "1" + - api.Location.toString + + # baseline: false + # support: + # chrome: "20" + # chrome_android: "25" + # edge: "79" + # safari: "6" + # safari_ios: "6" + - api.Location.ancestorOrigins From 96fc4a6df3c3cc37d879c6341dd3947e20ead09e Mon Sep 17 00:00:00 2001 From: dietrich ayala Date: Mon, 7 Oct 2024 14:22:45 +0700 Subject: [PATCH 5/9] remove from draft --- features/draft/spec/html.yml | 15 ---------- features/draft/spec/html.yml.dist | 47 ------------------------------- 2 files changed, 62 deletions(-) diff --git a/features/draft/spec/html.yml b/features/draft/spec/html.yml index 6c71514a0df..59d452fc6a3 100644 --- a/features/draft/spec/html.yml +++ b/features/draft/spec/html.yml @@ -249,21 +249,6 @@ compat_features: - api.ImageData.data - api.ImageData.height - api.ImageData.width - - api.Location - - api.Location.ancestorOrigins - - api.Location.assign - - api.Location.hash - - api.Location.host - - api.Location.hostname - - api.Location.href - - api.Location.origin - - api.Location.pathname - - api.Location.port - - api.Location.protocol - - api.Location.reload - - api.Location.replace - - api.Location.search - - api.Location.toString - api.MathMLElement.blur - api.MathMLElement.dataset - api.MathMLElement.focus diff --git a/features/draft/spec/html.yml.dist b/features/draft/spec/html.yml.dist index a7f6283a5a1..3f1411cd054 100644 --- a/features/draft/spec/html.yml.dist +++ b/features/draft/spec/html.yml.dist @@ -47,17 +47,6 @@ compat_features: - api.HTMLInputElement.src - api.HTMLInputElement.type - api.HTMLInputElement.value - - api.Location - - api.Location.hash - - api.Location.host - - api.Location.hostname - - api.Location.href - - api.Location.pathname - - api.Location.port - - api.Location.protocol - - api.Location.reload - - api.Location.replace - - api.Location.search - api.Navigator - api.Navigator.language - api.Navigator.userAgent @@ -197,7 +186,6 @@ compat_features: - api.HTMLOptionsCollection.add - api.HTMLOptionsCollection.length - api.HTMLOptionsCollection.selectedIndex - - api.Location.assign - api.Window.frameElement - api.Window.self - api.Window.top @@ -1249,19 +1237,6 @@ compat_features: - api.HashChangeEvent.newURL - api.HashChangeEvent.oldURL - # baseline: high - # baseline_low_date: 2015-07-29 - # baseline_high_date: 2018-01-29 - # support: - # chrome: "8" - # chrome_android: "18" - # edge: "12" - # firefox: "21" - # firefox_android: "21" - # safari: "5.1" - # safari_ios: "5" - - api.Location.origin - # baseline: high # baseline_low_date: 2015-07-29 # baseline_high_date: 2018-01-29 @@ -1659,19 +1634,6 @@ compat_features: - api.HTMLImageElement.currentSrc - api.HTMLImageElement.sizes - # baseline: high - # baseline_low_date: 2016-07-27 - # baseline_high_date: 2019-01-27 - # support: - # chrome: "52" - # chrome_android: "52" - # edge: "12" - # firefox: "22" - # firefox_android: "22" - # safari: "1" - # safari_ios: "1" - - api.Location.toString - # baseline: high # baseline_low_date: 2016-08-02 # baseline_high_date: 2019-02-02 @@ -3306,15 +3268,6 @@ compat_features: # safari_ios: ≤11.3 - html.elements.input.type_month - # baseline: false - # support: - # chrome: "20" - # chrome_android: "25" - # edge: "79" - # safari: "6" - # safari_ios: "6" - - api.Location.ancestorOrigins - # baseline: false # support: # chrome: "37" From e9c65976fa7000b86305b0045c861c9ca2580b53 Mon Sep 17 00:00:00 2001 From: dietrich ayala Date: Tue, 8 Oct 2024 17:35:10 +0700 Subject: [PATCH 6/9] add impls --- features/draft/spec/html.yml | 2 -- features/location.yml | 2 ++ features/location.yml.dist | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/features/draft/spec/html.yml b/features/draft/spec/html.yml index a24d745e23d..d5ea936dd93 100644 --- a/features/draft/spec/html.yml +++ b/features/draft/spec/html.yml @@ -62,7 +62,6 @@ compat_features: - api.Document.images - api.Document.lastModified - api.Document.links - - api.Document.location - api.Document.open - api.Document.plugins - api.Document.readyState @@ -457,7 +456,6 @@ compat_features: - api.Window.length - api.Window.load_event - api.Window.localStorage - - api.Window.location - api.Window.message_event - api.Window.name - api.Window.navigator diff --git a/features/location.yml b/features/location.yml index a0342e8f075..31dea056362 100644 --- a/features/location.yml +++ b/features/location.yml @@ -5,6 +5,7 @@ spec: https://html.spec.whatwg.org/multipage/nav-history-apis.html#the-location- status: compute_from: api.Location compat_features: + - api.Document.location - api.Location - api.Location.ancestorOrigins - api.Location.assign @@ -20,3 +21,4 @@ compat_features: - api.Location.replace - api.Location.search - api.Location.toString + - api.Window.location diff --git a/features/location.yml.dist b/features/location.yml.dist index efd9b259c67..33f582e5102 100644 --- a/features/location.yml.dist +++ b/features/location.yml.dist @@ -26,6 +26,7 @@ compat_features: # firefox_android: "4" # safari: "1" # safari_ios: "1" + - api.Document.location - api.Location - api.Location.hash - api.Location.host @@ -37,6 +38,7 @@ compat_features: - api.Location.reload - api.Location.replace - api.Location.search + - api.Window.location # baseline: high # baseline_low_date: 2015-07-29 From 6a7fb7c6939e903fbb7c9c16463c43c8515413ca Mon Sep 17 00:00:00 2001 From: dietrich ayala Date: Tue, 8 Oct 2024 18:13:16 +0700 Subject: [PATCH 7/9] update html draft --- features/draft/spec/html.yml.dist | 2 -- 1 file changed, 2 deletions(-) diff --git a/features/draft/spec/html.yml.dist b/features/draft/spec/html.yml.dist index 3f1411cd054..5e1319a8120 100644 --- a/features/draft/spec/html.yml.dist +++ b/features/draft/spec/html.yml.dist @@ -24,7 +24,6 @@ compat_features: - api.Document.images - api.Document.lastModified - api.Document.links - - api.Document.location - api.Document.referrer - api.Document.title - api.Document.write @@ -61,7 +60,6 @@ compat_features: - api.Window.frames - api.Window.history - api.Window.length - - api.Window.location - api.Window.name - api.Window.navigator - api.Window.open From 34ce77c4376c0fa989eca0fc6a721be21e559fb4 Mon Sep 17 00:00:00 2001 From: Dietrich Ayala <50103+autonome@users.noreply.github.com> Date: Tue, 8 Oct 2024 22:55:12 +0700 Subject: [PATCH 8/9] Update features/location.yml Co-authored-by: Daniel D. Beck --- features/location.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/features/location.yml b/features/location.yml index 31dea056362..3dc9632e1a4 100644 --- a/features/location.yml +++ b/features/location.yml @@ -1,9 +1,9 @@ name: Location -description: "The `Location` global object represents the current address of the web page loaded in the browser. It makes all component parts of the address accessible and can be manipulated to initiate navigations." +description: The `location` global object represents the current page's address. You can use it to get the parts of the address (such as `location.hostname` or `location.pathname`) or navigate to another URL. spec: https://html.spec.whatwg.org/multipage/nav-history-apis.html#the-location-interface # `ancestorOrigins` makes this baseline false but is not required for usage of the feature. status: - compute_from: api.Location + compute_from: api.Window.location compat_features: - api.Document.location - api.Location From c69d41ced03e5a09b29700715d0ae3a54d2999d9 Mon Sep 17 00:00:00 2001 From: dietrich ayala Date: Tue, 8 Oct 2024 23:02:27 +0700 Subject: [PATCH 9/9] merge --- features/draft/spec/html.yml.dist | 35 ------------------------------- 1 file changed, 35 deletions(-) diff --git a/features/draft/spec/html.yml.dist b/features/draft/spec/html.yml.dist index 6ee97b1019a..9ce37d6fb3c 100644 --- a/features/draft/spec/html.yml.dist +++ b/features/draft/spec/html.yml.dist @@ -1192,41 +1192,6 @@ compat_features: # safari_ios: "5" - html.elements.input.type_number - # baseline: high - # baseline_low_date: 2015-07-29 - # baseline_high_date: 2018-01-29 - # support: - # chrome: "8" - # chrome_android: "18" - # edge: "12" -<<<<<<< HEAD - # firefox: "3.6" - # firefox_android: "4" - # safari: "5" - # safari_ios: "5" - - api.HashChangeEvent - - # baseline: high - # baseline_low_date: 2015-07-29 - # baseline_high_date: 2018-01-29 - # support: - # chrome: "8" - # chrome_android: "18" - # edge: "12" - # firefox: "6" - # firefox_android: "6" - # safari: "5.1" - # safari_ios: "5" - - api.HashChangeEvent.newURL - - api.HashChangeEvent.oldURL -======= - # firefox: "21" - # firefox_android: "21" - # safari: "5.1" - # safari_ios: "5" - - api.Location.origin ->>>>>>> main - # baseline: high # baseline_low_date: 2015-07-29 # baseline_high_date: 2018-01-29