- From: Christoph Päper via GitHub <noreply@w3.org>
- Date: Tue, 24 Feb 2026 21:19:15 +0000
- To: public-css-archive@w3.org
I thought it would be a problem if the first parameter also became optional, but you never need a fallback value if the property specified in the first parameter (or implied by its omission) cannot be void (i.e. guaranteed invalid) like all standard properties.
~~~~ css
a {
--custom: green;
background: var(--custom);
border-color: lime;
color: olive;
}
a>b {
--custom: orange;
border-color:
currentcolor
inherit(/* border-color */) /* like `inherit` */
inherit(background-color) /* future level */
inherit(--custom, red)
; /* = olive lime green green */
}
~~~~
--
GitHub Notification of comment by Crissov
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13426#issuecomment-3954785958 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 24 February 2026 21:19:16 UTC