- From: Brad Kemper via GitHub <noreply@w3.org>
- Date: Fri, 10 Apr 2026 09:10:47 +0000
- To: public-css-archive@w3.org
> @mirisuzanne is correct of course that custom functions already establish a brief syntax for specifying a custom property‘s syntax (and default value), but not collectively for a list of properties. Also, the proposed from keyword does not do much more than using var() or env() would. > > @property --text-color, --border-color <color>: var(--primary-color, black); > So far I like this syntax the best, both for its brevity and its similarity to custom functions. It even seems like a natural progression from existing custom properties. Maybe just add an optional `inherits` keyword? ``` @property --text-color, --border-color <color> inherits: var(--primary-color, black); ``` It would also be clean and compact for writing individually too: ``` @property --text-color <color> inherits: var(--primary-color, black); @property --border-color <color>: var(--text-color, black); ``` -- GitHub Notification of comment by bradkemper Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7523#issuecomment-4222443443 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 10 April 2026 09:10:48 UTC