- From: CSS Meeting Bot via GitHub <noreply@w3.org>
- Date: Fri, 14 Nov 2025 06:37:53 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `[css-mixins-1][css-values-5] The inherit() function in custom functions`, and agreed to the following:
* ``RESOLVED: in `result: inherit();`, the inherit() is treated the same as a plain `inherit` (passed thru and only resolved on the actual element)``
<details><summary>The full IRC log of that discussion</summary>
<ydaniv> TabAtkins: about custom functions<br>
<ydaniv> ... in there, if you write results: inherit, it just makes the function resolve to inherit<br>
<ydaniv> ... similar to a var() with a fallback of inherit<br>
<ydaniv> ... the behavior is idnetical on purpose<br>
<ydaniv> ... but we don't define inherit function to have the same sort of behavior<br>
<ydaniv> ... so poposal is let's do that<br>
<miriam> q+<br>
<ydaniv> s/poposal/proposal/<br>
<astearns> ack miriam<br>
<ydaniv> miriam: 2 questions, why is that true only about inherit?<br>
<ydaniv> TabAtkins: we currently don't have other functions for other keywords<br>
<ydaniv> miriam: so question why only inherit gets pass through<br>
<ydaniv> TabAtkins: all global keywords gets passthrough unchanged<br>
<ydaniv> kizu: css keywords do pass but function not<br>
<ydaniv> miriam: we're saying the function doesn't pass through in results<br>
<ydaniv> TabAtkins: yes<br>
<TabAtkins> @function --foo() { result: inherit(--bar); }<br>
<ydaniv> TabAtkins: this is the case we're talking about<br>
<ydaniv> ... this is different from inheting a var, the function should work the same way, there are use-cases for both<br>
<ydaniv> miriam: how does this interact with last conversation<br>
<ydaniv> ... the var doesn't inherit from an arg that's passed in<br>
<ydaniv> TabAtkins: if we don't get a special behavior it would get value from the element, like a bare inherit<br>
<miriam> +1 to the proposed change<br>
<ydaniv> astearns: anyone else?<br>
<ydaniv> TabAtkins: kizu I suppose you +1 too?<br>
<ydaniv> kizu: yes<br>
<TabAtkins> proposed: in `result: inherit();`, the inherit() is treated the same as a plain `inherit` (passed thru and only resolved on the actual element)<br>
<ydaniv> astearns: objectsions?<br>
<ydaniv> RESOLVED: in `result: inherit();`, the inherit() is treated the same as a plain `inherit` (passed thru and only resolved on the actual element)<br>
</details>
--
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12987#issuecomment-3531127663 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 14 November 2025 06:37:54 UTC