From 418ecdc2904eca2d4bc3bf4e27074746746921da Mon Sep 17 00:00:00 2001 From: Owen Buckley Date: Sun, 4 Sep 2022 14:53:35 -0400 Subject: [PATCH 1/3] fix typo --- reports/2022.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reports/2022.html b/reports/2022.html index 27fe7c3..f3b1138 100644 --- a/reports/2022.html +++ b/reports/2022.html @@ -177,8 +177,8 @@

Table of Contents

- Imperative Slot Assignement - + Imperative Slot Assignment + whatwg/html#3534 @@ -1371,7 +1371,7 @@

Open Questions

-

Imperative Slot Assignement

+

Imperative Slot Assignment

Links

From c31a16f4c2f1bcde9930a831936704377091230f Mon Sep 17 00:00:00 2001 From: Owen Buckley Date: Sun, 4 Sep 2022 15:08:56 -0400 Subject: [PATCH 2/3] Slot assignment research WIP --- reports/2022.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/reports/2022.html b/reports/2022.html index f3b1138..526e8a7 100644 --- a/reports/2022.html +++ b/reports/2022.html @@ -1378,9 +1378,9 @@

Links

Previous WCCG Report(s)
N/A
GitHub issues:
-
---
+
whatwg/html#3534
Browser positions:
-
---
+
Firefox
@@ -1390,7 +1390,9 @@

Description

Status

From 38712d52d8c6885b5aa91c100fdebbabe51ac443 Mon Sep 17 00:00:00 2001 From: Owen Buckley Date: Mon, 5 Sep 2022 08:57:33 -0400 Subject: [PATCH 3/3] add notes about current examples and status of imperative slot API --- reports/2022.html | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/reports/2022.html b/reports/2022.html index 526e8a7..66d75af 100644 --- a/reports/2022.html +++ b/reports/2022.html @@ -180,7 +180,7 @@

Table of Contents

Imperative Slot Assignment whatwg/html#3534 - + Partial Implementation CSS Properties and values inside shadow root @@ -1391,17 +1391,25 @@

Description

Status

Initial API Summary/Quick API Proposal

-

Summary or proposal based on current status; paragraph(s) and code.

+

Currently the Slot API only supports a declarative API, meaning that slot usage can only be expressed through adding the name attribute on an element. But there are valid cases where from multiple sources of slotted content, the Web Components author may want to programmatically set the content of a slot instead. Take this example from the proposal.

+
+          <custom-tab show-panel="2">
+            <tab-panel></tab-panel>
+            <tab-panel></tab-panel>
+            <tab-panel></tab-panel>
+          </custom-tab>
+        
+

Without an imperative API, how would an author be able to set the contents of a single available slot to the selected panel index?

Key Scenarios

-

---

+

Some of the scenarios called out in the proposal include not having to pre-compute the slot names ahead of time, as well as being able to conditionally load content into a slot.

Concerns

@@ -1424,7 +1432,7 @@

Related Specs

Open Questions

    -
  • ---
  • +
  • What is Safari's timeline for shipping? Their feature tracker confirms it is supported, but this example doesn't work on iOS.