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

Yeah, it _is_ a bit confusing that the things being defined and the things that constitute the definition exist on the same level. Also, there's a lot of "initial" going on there. Maybe you like @tabatkins's original version more? (Inlined below.)

```css
@properties {
  syntax: "<color>";
  inherits: false;
  --brand-color: teal;
  --text-color: black;
  --bg-color: white;
  /* more names and initial values here */
}
```

---

> [@LeaVerou](https://github.com/LeaVerou) I think partial definitions like that are actually more confusing.

Yeah, most at-rules that define a name (in the prelude) fully overwrite the previous definition. I don't think we should deviate from this.

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


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

Received on Thursday, 4 December 2025 10:35:03 UTC