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

> ```
> <something-foo> = <dashed-ident> - [ none | foo | bar ]
> ```

I like that this lends itself better to line-wrapping than the `excluding=` syntax. It might also find some use in other contexts, e.g. [outline-style](https://drafts.csswg.org/css-ui-4/#outline-style) which takes all of the border-style values except `hidden`.

Less a fan of the `is` spelling - I have to stare at it longer to realize it's not a literal. Would another layer of grouping work for disambiguation if needed?

```
<something-foo> = [ <dashed-ident> - [ none | foo | bar ] ]
```


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


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

Received on Wednesday, 12 March 2025 21:31:03 UTC