Re: [csswg-drafts] [css-values] hem: font-relative unit, relative to host element font-size (#7613)

I'll go ahead and close this issue, as it sounds like it will be a no-go for the foreseeable future.  If anyone else winds up here from Google in search of a solution, I want to point out that @jonathantneal made a [PostCSS plugin](https://www.npmjs.com/package/@csstools/custom-units) for support of the variable unit syntax.  I opened an [issue](https://github.com/csstools/postcss-plugins/issues/578) to add a native PostCSS plugin for this, but as of 8/21/2022 it is still too early to adopt.

If your project is small enough, you could always parse the CSS at runtime, though I would recommend a build step if possible. [Here's a little experiment](https://jsfiddle.net/0n2j9r17/) of mine, trying to polyfill a vanilla project.

Thanks to all for hearing me out!

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


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

Received on Sunday, 21 August 2022 18:47:57 UTC