Re: [csswg-drafts] [css-values-4] inherit() function: like var() for parent value, for any property (#2864)

My vote would be for `inherit()` since it can inherit from more than the direct parent, for example:

```css
.grandparent {
  --some-prop: 123;
}
.grandparent > .parent > .child {
  --some-prop: calc(inherit(--some-prop) * 10 + 4); /* 1234 */
}
```

`parent()` may confuse some people into thinking it needs to be inherited from a custom property explicitly defined on the selector's direct parent.

-- 
GitHub Notification of comment by brandonmcconnell
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2864#issuecomment-1409360853 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 30 January 2023 21:23:40 UTC