Intent to Prototype: The inherit() CSS function

217 views
Skip to first unread message

Anders Hartvoll Ruud

unread,
Oct 14, 2025, 9:58:11 AM (23 hours ago) Oct 14
to blink-dev
Contact emails
and...@chromium.org

Explainer
None

Specification
https://drafts.csswg.org/css-values-5/#inherit-notation

Summary
The inherit() function works similarly to the var() function, but substitutes to the computed custom property value of the parent element, rather than the current element. This can be useful if you want to take a value from the parent element, and make an adjustment to it "in-place", e.g. `--foo: calc(inherit(-foo) * 2)`.

Blink component
Blink>CSS

Web Feature ID
Missing feature

Motivation
None

Initial public proposal
None

TAG review
None

TAG review status
Pending

Risks


Interoperability and Compatibility
None

Gecko: No signal

WebKit: No signal

Web developers: No signals

Other signals:

WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?

None


Debuggability
None

Is this feature fully tested by web-platform-tests?
No


Requires code in //chrome?
False

Estimated milestones

No milestones specified



Link to entry on the Chrome Platform Status
https://chromestatus.com/feature/5996914579472384?gate=4828748570558464

This intent message was generated by Chrome Platform Status.
Reply all
Reply to author
Forward
0 new messages