My kingdom to be able to strip units from a CSS Calc operation. Reliably.

Trying to simplify some typographic scales, when the base font is itself responsive in a clamp()... nope. I need the ratio of the ideal heading vs ideal base-font calculating first, and ratios need to be unit-less.

Calc won't return unitless results.

So I'm left with manual math to plug into a calc().

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mstdn.social/users/mattwilcox/statuses/114624205955625121 on your instance and quote it. (Note that quoting is not supported in Mastodon.)