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

Yeah, variables can be used in all sorts of unexpected ways, but since you *can* get this information in this (fairly simple) way, it lessens the potential need for us to add a new CSS feature for it instead.

> I guess my next question is, would you classify the custom unit as the standard approach? Or is it more like a custom workaround for the lack of a native unit?

I'd call it "given the infinite variety of potential needs, we're constrained in what we can actually address, and prefer to only add new features for things that are either difficult/impossible, or very common". ^_^ If something is relatively less common and/or has a fairly easy way to achieve it by hand, it's usually best to leave it to userland.

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


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

Received on Friday, 19 August 2022 20:01:36 UTC