leading-trim-over: normal | text | cap | ex | ideographic
leading-trim-under: normal | text | alphabetic | ideographic
h2 { leading-trim: cap; }
h2 { leading-trim: cap; }
h2 { leading-trim: cap; }
h2 { leading-trim: cap; }
I thought this was a World-Wide Web?
Your metrics are bad, and you should feel bad.
Open Questions
Behavior at page/column breaks?
Separate cascading/inheritance of metric vs. trigger?
Multiple font sizes on the first/last line?
Vertical Alignment
unaligned text
match baselines, then shift
match baselines, then shift
But which baseline?
In a well-designed mixed-script font, the glyphs are positioned in the coordinate space to harmonize with one another when typeset together. The baseline table is then constructed to match the shape of the glyphs, each baseline positioned to match the glyphs from its preferred scripts.
dominant-baseline: auto | alphabetic | ideographic | central | mathematical | …
vertical-align: <'alignment-baseline'> || <'baseline-shift>
└ alignment-baseline: baseline | alphabetic | ideographic | central | …
└ baseline-shift: sub | super | <length>