Skip to content

Commit ce18d3a

Browse files
committed
[css-shadow-parts-1] Add IDL for part.
Progresses w3c#2414
1 parent 45d3bc2 commit ce18d3a

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

css-shadow-parts-1/Overview.bs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,4 +301,19 @@ but never match additional <a>shadow-part pseudo-elements</a>.
301301
ignoring any other labels.
302302
</div>
303303

304-
Issue(w3c/csswg-drafts#2414): Define IDL for structured setting and getting of `part` and `exportparts`.
304+
Extensions to the {{Element}} Interface {#idl}
305+
==============================================
306+
307+
<pre class=idl>
308+
partial interface Element {
309+
[SameObject, PutForwards=value] readonly attribute DOMTokenList part;
310+
};
311+
</pre>
312+
313+
The part attribute’s getter must return a DOMTokenList object
314+
whose associated element is the context object
315+
and whose associated attribute’s local name is part.
316+
The token set of this particular DOMTokenList object are also known as the element’s parts.
317+
318+
Issue(w3c/csswg-drafts#2414): Define this as a superglobal in the DOM spec.
319+
Issue(w3c/csswg-drafts#2414): Define IDL for structured setting and getting of `exportparts`.

0 commit comments

Comments
 (0)