Re: [csswg-drafts] [css-cascade] Clarification on cascade order for font shorthand property (#9744)

This is expected: `--font-body-medium-1` is computed in `:root` with its specified value for `--font-size-350`, not with the specified value in `.inner`.

Maybe [this blog post](https://moderncss.dev/how-custom-property-values-are-computed/#inheritable-values-become-immutable) may help you if this is not clear.

```css
:root {
  --color: red;
  --color-root: var(--color);
}
div {
  --color: green;
  color: var(--color-root); /* red */
  background-color: var(--color); /* green */
}
```

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


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

Received on Thursday, 21 December 2023 20:20:49 UTC