The text-box-edge property specifies metrics for text trimming (text-box-trim). auto copies the value from line-fit-edge, treating leading as text. Other values correspond to specific font baselines.h1 {
text-box-edge: cap alphabetic;
}.tight {
text-box-trim: trim-both;
text-box-edge: ex alphabetic;
}autoThe default value. Copies the value from line-fit-edge.textText edge — includes the font's ascenders and descenders.capCap-height of the font's uppercase letters.exX-height — lowercase letters without extenders.ideographicIdeographic baselines (CJK) — full ideographic box.ideographic-inkInk edges of ideographic glyphs (excludes spacing).alphabeticAlphabetic baseline.CSS Inline Layout Module Level 3Editor's DraftW3CMDNHTML JavaScript CSSShow all codeEdit CSS onlineThe plugin that remembers hundreds of CSS items for youEvery CSS property — in a live demonstrationThe bilingual CSS referencedefinitionexamplessyntaxmodulespecificationsourcesvisual demonstrationpreviousnext