Re: [csswg-drafts] [css-mixins-1][css-values-5] The inherit() function in custom functions (#12987)

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>
&lt;ydaniv> TabAtkins: about custom functions<br>
&lt;ydaniv> ... in there, if you write results: inherit, it just makes the function resolve to inherit<br>
&lt;ydaniv> ... similar to a var() with a fallback of inherit<br>
&lt;ydaniv> ... the behavior is idnetical on purpose<br>
&lt;ydaniv> ... but we don't define inherit function to have the same sort of behavior<br>
&lt;ydaniv> ... so poposal is let's do that<br>
&lt;miriam> q+<br>
&lt;ydaniv> s/poposal/proposal/<br>
&lt;astearns> ack miriam<br>
&lt;ydaniv> miriam: 2 questions, why is that true only about inherit?<br>
&lt;ydaniv> TabAtkins: we currently don't have other functions for other keywords<br>
&lt;ydaniv> miriam: so question why only inherit gets pass through<br>
&lt;ydaniv> TabAtkins: all global keywords gets passthrough unchanged<br>
&lt;ydaniv> kizu: css keywords do pass but function not<br>
&lt;ydaniv> miriam: we're saying the function doesn't pass through in results<br>
&lt;ydaniv> TabAtkins: yes<br>
&lt;TabAtkins> @function --foo() { result: inherit(--bar); }<br>
&lt;ydaniv> TabAtkins: this is the case we're talking about<br>
&lt;ydaniv> ... this is different from inheting a var, the function should work the same way, there are use-cases for both<br>
&lt;ydaniv> miriam: how does this interact with last conversation<br>
&lt;ydaniv> ... the var doesn't inherit from an arg that's passed in<br>
&lt;ydaniv> TabAtkins: if we don't get a special behavior it would get value from the element, like a bare inherit<br>
&lt;miriam> +1 to the proposed change<br>
&lt;ydaniv> astearns: anyone else?<br>
&lt;ydaniv> TabAtkins: kizu I suppose you +1 too?<br>
&lt;ydaniv> kizu: yes<br>
&lt;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>
&lt;ydaniv> astearns: objectsions?<br>
&lt;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