W3C home > Mailing lists > Public > public-css-archive@w3.org > September 2020

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

From: Chris Hall via GitHub <sysbot+gh@w3.org>
Date: Thu, 10 Sep 2020 08:42:51 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-697624777-1599727370-sysbot+gh@w3.org>
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 ==
"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.

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>

**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>

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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:16 UTC