Re: [csswg-drafts] [css-values] Grammar syntax for defining excluded idents for <custom-ident> productions (#11924)

  > I'm concerned about readability.

Agreed. The list for [`<family-name>`](https://drafts.csswg.org/css-fonts-4/#family-name-syntax) would be very long.

On one hand, there are not that many contexts with reserved keywords. That said, assuming implementations that would rely on this data rely on `w3c/webref`, Bikeshed could help:

```html
<dfn excludes="none, foo, bar"><<something-foo>></dfn>
```

Exported by `w3c/webref` as:

```json
{
  "name": "<something-foo>",
  "type": "type",
  "excludes": "none, foo, bar",
}
```

On the other hand, authors should also be considered since they can specify a value definition syntax in `@property/initial-value`, `@function`, `if()`, etc. This syntax is restricted but they might find it usefull to exclude some keywords for `<custom-ident>`.

-- 
GitHub Notification of comment by cdoublev
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11924#issuecomment-2720470312 using your GitHub account


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

Received on Thursday, 13 March 2025 08:55:41 UTC