Skip to content

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

Closed
@chrisosaurus

Description

@chrisosaurus

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>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions