[csswg-drafts] value() function to get value from another CSS rule (#12882)

waterplea has just created a new issue for https://github.com/w3c/csswg-drafts:

== value() function to get value from another CSS rule ==
Sorry if this was brought up already, but why CSS keeps inventing new units like `lh` instead of allowing passing values of other rules with some function? Like:
```css
height: value(line-height);
```
Instead of:
```css
height: 1lh;
```
Is there some technical limitation/performance concern? This would make it very future-proof and extremely powerful allowing us all kinds of things and dropping the need for single use workarounds like `currentColor`.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12882 using your GitHub account


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

Received on Wednesday, 1 October 2025 10:01:55 UTC