- From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
- Date: Sat, 19 Oct 2024 12:54:26 +0000
- To: public-css-archive@w3.org
You basically want `inherit(font-size)` from #2864
For now we restricted it to custom properties, but it should still allow something like
```css
@property --em {
syntax: "<length>";
inherits: false;
initial-value: 0px;
}
@property --pem {
syntax: "<length>";
inherits: false;
initial-value: 0px;
}
* {
--em: 1em;
--pem: inherit(--em);
}
#foo {
padding: 2--pem;
}
```
--
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11051#issuecomment-2423829580 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Saturday, 19 October 2024 12:54:27 UTC