CSS — Text

← Back to index · ← Supported CSS

Typography properties and inline text behavior. The text stack itself (font resolution, atlases, shaping) is covered in Text & Fonts; this page is the CSS surface.

Fonts

The default face is Segoe UI, not Arial — an intentional, locked product decision. Bare sans-serif resolves to the bundled Segoe-UI-like face.

Line box & spacing

Alignment & decoration

Known gap (TEXTALIGN-ABS): text-align: center/right/justify is lost on a block that also contains an out-of-flow (absolute/fixed) child. Workaround: make the centered text and the out-of-flow decoration siblings.

White-space, wrapping & overflow

Inline formatting

A real inline formatting context lays out mixed-style runs (<span>/<strong>/<a>/<code>) within a line, with correct baselines for inline-block atoms. LTR only — no bidi reordering, no vertical writing-mode glyph flow (both are v1 non-goals).

Single-fragment decoration (v1 simplification): an inline element whose text wraps across multiple lines paints its border/background on the first line's bbox only — decoration is not split across line fragments.

Registered-but-not-shaped

These cascade and inherit but have no real shaping support in v1: font-feature-settings, font-variant-numeric, font-size-adjust, font-synthesis-*. Pin explicit values if a design depends on them; expect no visible effect.


Next: Text & Fonts · Animations & Transitions