files/en-us/web/css/reference/values/text-edge/index.md
The <text-edge> {{glossary("enumerated")}} data type defines keywords that specify font metrics representing specific regions on a font's block-start edge and block-end edge. Each keyword specifies a position of a font's over and/or under edge.
The <text-edge> values are used in the {{cssxref("text-box-edge")}} property to specify an amount of space to trim from the block-start and block-end edge of a text element's block container.
The <text-edge> data type is composed of one or two keywords representing specific regions on a font's block-start (over) edge and/or block-end (under) edge:
text
: The font's over and under edges are its text-over baseline/text-under baseline: this includes the font's ascenders and descenders but excludes the half-leading set on the text.
[!NOTE] The amount of half-leading included on a text element can be controlled using the {{cssxref("line-height")}} property.
[!NOTE] The
ideographicandideographic-inkkeywords are intended to specify over and under edge positions specific to CJK language characters. Currently their exact behavior is being debated and they are not supported by any browser.
alphabetic
cap
ex
text
{{CSSSyntaxRaw(<text-edge> = [ text | ideographic | ideographic-ink ] | [ text | ideographic | ideographic-ink | cap | ex ] [ text | ideographic | ideographic-ink | alphabetic ])}}
{{Specifications}}
{{Compat}}