Re: [csswg-drafts] [css-properties-values-api] Shorthand for custom property declaration (#7523)

We could simplify the syntax for defining prefixes or suffixes [https://github.com/w3c/csswg-drafts/issues/7523#issuecomment-3618758105] by requiring `*` and removing the `inherits: prefix | suffix` declaration:

```css
@property --color-* {
  syntax: <color>;
  initial-value: currentcolor;
  inherits: true;
}
@property *-color {
  syntax: <color>;
  initial-value: currentcolor;
  inherits: true;
}
```

I think that would remove confusion from the syntax.

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


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

Received on Friday, 12 December 2025 12:21:15 UTC