- From: Christoph Päper via GitHub <noreply@w3.org>
- Date: Thu, 11 Dec 2025 23:03:34 +0000
- To: public-css-archive@w3.org
@SebastianZ So, in conclusion, …
~~~~ css
@property-prefix color- /* `--color-`, `color`? */ {
syntax: "<color>";
inherits: true;
initial-value: currentcolor;
}
@property-suffix -color /* `color`? */ {
syntax: "<color>";
inherits: true;
initial-value: currentcolor;
}
@property --text-color, --color-text {
initial-value: black;
}
@property --black from --text-color;
~~~~
If the descriptors were optional, their default values could come from somewhere else. If this source was different at-rules specifying them group-wise, there technically would be no overwriting.
Alternative(s):
~~~~ css
@property color {
syntax: "<color>";
inherits: true;
initial-value: currentcolor;
--text-& {
initial-value: black;
}
--&-text: black;
--black: var(--text-color);
}
~~~~
--
GitHub Notification of comment by Crissov
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7523#issuecomment-3644156335 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 11 December 2025 23:03:34 UTC