Skip to content

Commit bdee812

Browse files
committed
[css-shadow-parts-1] exportedparts -> exportparts
1 parent efe81b6 commit bdee812

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

css-shadow-parts-1/Overview.bs

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ as authors can use ''::part()'' without fear of accidental over-styling.
121121
Exposing a Shadow Element: {#exposing}
122122
=============================================================
123123
Elements in a <a>shadow tree</a> may be exported for styling by stylesheets outside the tree
124-
using the part and exportedparts attributes.
124+
using the part and exportparts attributes.
125125

126126
Each element has a <dfn export for="element">part name list</dfn>
127127
which is an [=ordered set=] of tokens.
@@ -197,16 +197,16 @@ not an id or tagname.
197197
&lt;/script&gt;
198198
</pre>
199199

200-
Forwarding a Shadow Element: the <{html-global/exportedparts}> attribute {#exportedparts-attr}
200+
Forwarding a Shadow Element: the <{html-global/exportparts}> attribute {#exportparts-attr}
201201
----------------------------------------------------------------------------------
202-
Any element in a shadow tree can have a <dfn element-attr for=html-global>exportedparts</dfn> attribute.
202+
Any element in a shadow tree can have a <dfn element-attr for=html-global>exportparts</dfn> attribute.
203203
If the element is a shadow host,
204204
this is used to allow styling of parts from hosts inside the <a>shadow tree</a>
205205
by rules outside this the <a>shadow tree</a>
206206
(as if they were elements in the same tree as the host,
207207
named by a part attribute).
208208

209-
The exportedparts attribute is parsed as a comma-separated list of part mappings.
209+
The exportparts attribute is parsed as a comma-separated list of part mappings.
210210
Each part mapping is one of:
211211

212212
<dl class=switch>
@@ -222,13 +222,11 @@ Each part mapping is one of:
222222

223223
Note: It's okay to map a sub-part to several names.
224224

225-
Issue(w3c/csswg-drafts#2411): Decide whether we use "inner outer" or "outer inner"
226-
227225
Issue(w3c/csswg-drafts#2411): Decide whether to allow "ident1 : ident2 ident3 ..."
228226
as shorthand for "ident1 : ident2, ident1 : ident3, ...".
229227

230228
Issue(w3c/csswg-drafts#2411): Decide whether to allow wild-card forwarding,
231-
e.g exportedparts="button-* buttons".
229+
e.g exportparts="button-* buttons".
232230
Consider excluding sub-parts that have been explicitly forwarded.
233231
Consider a mechanism to exclude sub-parts without forwarding them.
234232

@@ -238,7 +236,7 @@ Consider a mechanism to exclude sub-parts without forwarding them.
238236
&lt;/style&gt;
239237

240238
&lt;template id="c-e-outer-template"&gt;
241-
&lt;c-e-inner <b>exportedparts="innerspan textspan"</b>&gt;&lt;/c-e-inner&gt;
239+
&lt;c-e-inner <b>exportparts="innerspan textspan"</b>&gt;&lt;/c-e-inner&gt;
242240
&lt;/template&gt;
243241

244242
&lt;template id="c-e-inner-template"&gt;
@@ -368,11 +366,11 @@ Extensions to the {{Element}} Interface {#idl}
368366
<pre class=idl>
369367
partial interface Element {
370368
attribute DOMString part;
371-
attribute DOMString exportedParts;
369+
attribute DOMString exportparts;
372370
};
373371
</pre>
374372

375-
The `exportedParts` attribute must reflect the `exportedparts` content attribute.
373+
The `exportparts` attribute must reflect the `exportparts` content attribute.
376374

377375
The `part` attribute must reflect the `part` content attribute.
378376

0 commit comments

Comments
 (0)