[csswg-drafts] [css-shadow-parts-1] 2.2 exportparts example doesn't match syntax specified (#5504)

chrisosaurus has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-shadow-parts-1] 2.2 exportparts example doesn't match syntax specified ==
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.

I think this snippet should instead be

```
<template id="c-e-outer-template">
  <c-e-inner exportparts="innerspan : textspan"></c-e-inner>
</template>
```

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5504 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 10 September 2020 08:42:53 UTC