You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>Summary or proposal based on current status; paragraph(s) and code.</p>
1340
+
<p>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 <ahref="https://github.com/WICG/webcomponents/blob/gh-pages/proposals/Imperative-Shadow-DOM-Distribution-API.md" target="_blank">this example</a> from the proposal.</p>
1341
+
<preclass="html">
1342
+
<custom-tab show-panel="2">
1343
+
<tab-panel></tab-panel>
1344
+
<tab-panel></tab-panel>
1345
+
<tab-panel></tab-panel>
1346
+
</custom-tab>
1347
+
</pre>
1348
+
<p>Without an imperative API, how would an author be able to set the contents of a single available slot to the selected panel index?</p>
1341
1349
</section>
1342
1350
<section>
1343
1351
<h3>Key Scenarios</h3>
1344
-
<p>---</p>
1352
+
<p>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.</p>
1345
1353
</section>
1346
1354
<section>
1347
1355
<h3>Concerns</h3>
@@ -1364,7 +1372,7 @@ <h3>Related Specs</h3>
1364
1372
<section>
1365
1373
<h3>Open Questions</h3>
1366
1374
<ul>
1367
-
<li>---</li>
1375
+
<li>What is Safari's timeline for shipping? Their feature tracker confirms it is supported, but <ahref="https://codepen.io/Westbrook/pen/GRvbWzM">this example</a> doesn't work on iOS.</li>
0 commit comments