Thanks for working on this Sajid, this is exciting :)

There's quite a few things we could do in DevTools for 
this, https://bugzilla.mozilla.org/show_bug.cgi?id=1994997 covers them


On Monday, 2 November 2026 at 17:10:17 UTC+1 [email protected] wrote:

> *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/20981d79-a2b3-45bf-bbe7-5b7ec34cd911n%40mozilla.org.

Reply via email to