property
Text box edge — CSS reference
Selects typographic edges for text trimming; cap uses cap-height at the start and alphabetic uses the alphabetic baseline at the end. It requires text-box-trim to enable trimming.
Formal Syntax & Structure
css syntaxcss
text-box-edge: cap alphabetic;Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>text-box-edge</title><style>body{margin:8px;font:16px/24px sans-serif}#a,#b{font:32px/64px Arial;margin:0}#a{text-box-trim:trim-both;text-box-edge:cap alphabetic;text-box-edge:cap alphabetic}</style><body><p id="a">CSS</p><p id="b">CSS</p></body></html>