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>
1400
+
<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>
1401
+
<preclass="html">
1402
+
<custom-tab show-panel="2">
1403
+
<tab-panel></tab-panel>
1404
+
<tab-panel></tab-panel>
1405
+
<tab-panel></tab-panel>
1406
+
</custom-tab>
1407
+
</pre>
1408
+
<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>
1399
1409
</section>
1400
1410
<section>
1401
1411
<h3>Key Scenarios</h3>
1402
-
<p>---</p>
1412
+
<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>
1403
1413
</section>
1404
1414
<section>
1405
1415
<h3>Concerns</h3>
@@ -1422,7 +1432,7 @@ <h3>Related Specs</h3>
1422
1432
<section>
1423
1433
<h3>Open Questions</h3>
1424
1434
<ul>
1425
-
<li>---</li>
1435
+
<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