Closed
Description
https://www.w3.org/TR/css-shadow-parts-1/#exportparts-attr
"2.2. Forwarding a Shadow Element: the exportparts attribute"
specifies the syntax for exportparts
The exportparts attribute is parsed as a comma-separated list of part mappings. Each part mapping is one of:
innerIdent : outerIdent
this adds «[ outerIdent → innerIdent ]» to el’s part name map.
ident
Is shorthand for ident : ident.
anything else
Ignored for error-recovery / future compatibility.
The example includes a snippet
<template id="c-e-outer-template">
<c-e-inner exportparts="innerspan textspan"></c-e-inner>
</template>
Note the missing colon (:
) from the exportparts
attribute value.
(based on the comments within the example)
I think this snippet should contain an exportparts
attribute value "innerspan : text"
like so
<template id="c-e-outer-template">
<c-e-inner exportparts="innerspan : textspan"></c-e-inner>
</template>