From 377d7af068c46258fafc7b0de1a21c69b809f990 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20J=C3=A4genstedt?= Date: Mon, 22 Apr 2024 11:30:21 +0200 Subject: [PATCH] Split into two features and add statuses (#880) --- .../slot-assign.dist.yml | 23 ++++++++++++ feature-group-definitions/slot-assign.yml | 9 +++++ feature-group-definitions/slot.dist.yml | 35 +++++++++++++++++++ feature-group-definitions/slot.yml | 8 ++--- 4 files changed, 71 insertions(+), 4 deletions(-) create mode 100644 feature-group-definitions/slot-assign.dist.yml create mode 100644 feature-group-definitions/slot-assign.yml create mode 100644 feature-group-definitions/slot.dist.yml diff --git a/feature-group-definitions/slot-assign.dist.yml b/feature-group-definitions/slot-assign.dist.yml new file mode 100644 index 00000000000..a60f0017d00 --- /dev/null +++ b/feature-group-definitions/slot-assign.dist.yml @@ -0,0 +1,23 @@ +# Generated from: slot-assign.yml +# Do not edit this file by hand. Edit the source file instead! + +name: Imperative slot assignment +description: The `assign()` method for `` elements assigns nodes to the slot, as an alternative to using the `slot` and `name` HTML attributes. The nodes must be children of a shadow host and the shadow root must be created with the `slotAssignment` set to "manual". Also known as manual slot assignment. +spec: https://html.spec.whatwg.org/multipage/scripting.html#dom-slot-assign +status: + baseline: low + baseline_low_date: 2023-03-27 + support: + chrome: "86" + chrome_android: "86" + edge: "86" + firefox: "92" + firefox_android: "92" + safari: "16.4" + safari_ios: "16.4" +# The spec PRs called this the Imperative Slot API: +# https://github.com/whatwg/dom/pull/966 +# https://github.com/whatwg/html/pull/6561 +compat_features: + - api.HTMLSlotElement.assign + - api.ShadowRoot.slotAssignment diff --git a/feature-group-definitions/slot-assign.yml b/feature-group-definitions/slot-assign.yml new file mode 100644 index 00000000000..14389630c47 --- /dev/null +++ b/feature-group-definitions/slot-assign.yml @@ -0,0 +1,9 @@ +name: Imperative slot assignment +description: The `assign()` method for `` elements assigns nodes to the slot, as an alternative to using the `slot` and `name` HTML attributes. The nodes must be children of a shadow host and the shadow root must be created with the `slotAssignment` set to "manual". Also known as manual slot assignment. +spec: https://html.spec.whatwg.org/multipage/scripting.html#dom-slot-assign +# The spec PRs called this the Imperative Slot API: +# https://github.com/whatwg/dom/pull/966 +# https://github.com/whatwg/html/pull/6561 +compat_features: + - api.HTMLSlotElement.assign + - api.ShadowRoot.slotAssignment diff --git a/feature-group-definitions/slot.dist.yml b/feature-group-definitions/slot.dist.yml new file mode 100644 index 00000000000..03478f4b9ec --- /dev/null +++ b/feature-group-definitions/slot.dist.yml @@ -0,0 +1,35 @@ +# Generated from: slot.yml +# Do not edit this file by hand. Edit the source file instead! + +name: +description: The `` HTML element is a placeholder inside a web component where consumers of the component can insert their own markup. +spec: https://html.spec.whatwg.org/multipage/scripting.html#the-slot-element +group: html +usage_stats: https://chromestatus.com/metrics/feature/timeline/popularity/1898 +status: + baseline: high + baseline_low_date: 2020-01-15 + baseline_high_date: 2022-07-15 + support: + chrome: "53" + chrome_android: "53" + edge: "79" + firefox: "63" + firefox_android: "63" + safari: "10" + safari_ios: "10" +compat_features: + - api.Element.assignedSlot + - api.Element.slot + - api.HTMLSlotElement + - api.HTMLSlotElement.assignedNodes + # A later minor addition (element subset of assignedNodes) + # - api.HTMLSlotElement.assignedElements + - api.HTMLSlotElement.name + # https://github.com/mdn/browser-compat-data/pull/22826 + # - api.HTMLSlotElement.slotchange_event + - api.Text.assignedSlot + - css.selectors.slotted + - html.elements.slot + - html.elements.slot.name + - html.global_attributes.slot diff --git a/feature-group-definitions/slot.yml b/feature-group-definitions/slot.yml index b5f1bc98068..84c08c039e7 100644 --- a/feature-group-definitions/slot.yml +++ b/feature-group-definitions/slot.yml @@ -7,12 +7,12 @@ compat_features: - api.Element.assignedSlot - api.Element.slot - api.HTMLSlotElement - - api.HTMLSlotElement.assign - - api.HTMLSlotElement.assignedElements - api.HTMLSlotElement.assignedNodes + # A later minor addition (element subset of assignedNodes) + # - api.HTMLSlotElement.assignedElements - api.HTMLSlotElement.name - - api.HTMLSlotElement.slotchange_event - - api.ShadowRoot.slotAssignment + # https://github.com/mdn/browser-compat-data/pull/22826 + # - api.HTMLSlotElement.slotchange_event - api.Text.assignedSlot - css.selectors.slotted - html.elements.slot