Open mirisuzanne opened 1 year ago
I don't think these have root versions?
They do have root versions, but it's not widely supported in browsers yet. https://drafts.csswg.org/css-values-4/#font-relative-lengths
The CSS Working Group just discussed [css-contain-3] Add container-font relative units
, and agreed to the following:
RESOLVED: Add these four container font relative units and their functional versions to target specific containers
RESOLVED: Add these four container font relative units and their functional versions to target specific containers
There are cap
and ic
defined in the spec. Are there any reason for excluding them?
I don't think so, that may have just been an oversight on my part.
I would expect all font-relative units to be added, like for root units (the comment about possible missing root units in the original post is not correct):
In https://github.com/w3c/csswg-drafts/issues/7858, there was mention of
cqem
as a useful alternative torem
units - based on the container font size, rather than the root font size. This seems like it could be useful for line height as well:rem
=>cqem
rlh
=>cqlh
Less essential, but also worth considering (I don't think these have root versions?):
ex
=>cqex
ch
=>cqch