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

@andruud Doesn't the computed value come into play though?  If you assign `5em` to a custom property, it's being evaluated at the time it's being called, correct?  What if you want the value of `5em` at a particular spot in the stack?

```css
* {
  font-size: 16px;
}
.foo {
  font-size: 2em !inheritable; // computed value stored from .foo in the token
}
.foo > .bar {
   font-size: 12px;
}
.foo > .bar > .baz {
   width: calc( inherited(font-size) * 20 ); // value of 2em at .foo rather than .baz
}
```

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


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

Received on Monday, 12 April 2021 14:42:31 UTC