*Summary:* The *CSS inherit() arbitrary substitution function* works much like *var()*, but uses the computed value of the custom property from the parent element instead. We intend to prototype an implementation of this function behind the *layout.css.inherit-function.enabled* pref.
Note that the *inherit()* function is currently defined only for looking up *custom properties* on the parent element. The w3c/csswg-drafts#2864 <https://github.com/w3c/csswg-drafts/issues/2864> issue remains open with the CSSWG to discuss expanding this to all properties. *Bug:* Bug 1703986 - [css-values-5] Implement inherit() arbitrary substitution function (like var() for parent value) <https://bugzilla.mozilla.org/show_bug.cgi?id=1703986> *Specification: * https://drafts.csswg.org/css-values-5/#inherit-notation *Standards Body: * CSSWG / W3C *Platform Coverage: * All *Preference:* *layout.css.inherit-function.enabled* *DevTools Bug: * (TBA) *Extensions Bug: * N/A *Use Counter: * N/A *Standards-Positions Discussion: * (none found) *Other Browsers:* - *Blink*: Shipped since Chrome 143 - *WebKit*: Previewed in Safari Technology Preview 251 *web-platform-tests:* https://wpt.fyi/results/css/css-values?label=master&label=experimental&aligned&q=inherit-function -- You received this message because you are subscribed to the Google Groups "[email protected]" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/e05875e9-f52b-43bb-a955-59bca150f715n%40mozilla.org.
