Re: [csswg-drafts] [css-values] Request for New CSS Unit Proposal (pem Unit) (#11051)

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