You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Aside from ''rem'' (which refers to the font-size of the root element)
925
-
and ''rlh'' (which refers to the line-height of the root element),
926
-
the <dfn export id="font-relative-length">font-relative lengths</dfn> refer to the font metrics of the element on which they are used.
927
-
The exception is when they occur in the value of the 'font-size' property itself,
928
-
in which case they refer to the computed font metrics of the parent element
929
-
(or the computed font metrics corresponding to the initial values of the 'font' property,
930
-
if the element has no parent).
931
-
In addition, if the ''lh'' unit is used in the value of the 'line-height' property,
932
-
it also refer to the computed metrics on the parent element
933
-
(or the computed metrics corresponding to the initial values of the 'font' and 'line-height' properties,
934
-
if the element has no parent).
924
+
The <dfn export id="font-relative-length">font-relative lengths</dfn> refer to the font metrics of the element on which they are used,
925
+
or, in the case of ''rem'' and ''rlh'', the metrics of the root element).
935
926
936
927
<figure>
937
928
<img src="images/Typography_Line_Terms.svg" alt="The word 'Sphinx' annotated with various font metrics: ascender height, to the top of the h's serif; cap height, to the visually approximate top of the S; the x height, to the visually approximate top of the x; the baseline, along the bottom of S, h, i, n, and x; and the descender height, to the bottom fo the p.">
0 commit comments