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 the bundled Inter (SIL OFL), not Arial — an intentional, locked product decision. Bare sans-serif resolves to the bundled Inter face. Segoe UI only resolves on Windows when you name it explicitly.

Line box & spacing

Alignment & decoration

Out-of-flow (absolute/fixed) children no longer disturb inline alignment — text-align: center/right/justify applies per CSS 2.1 §9.2.1.1 even when the block also contains positioned decorations.

Quotes: the quotes property (auto | none | [<open> <close>]+) and the open-quote / close-quote / no-open-quote / no-close-quote content keywords work with document-order nesting depth; <q> carries Chrome's UA rules. auto resolves to the English typographic pairs (locale-aware pairs are a v1 simplification).

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.

Font weight & synthesis

font-weight is honored: when the resolved face lacks the requested weight, the SDF text path synthesizes faux-bold by shifting the coverage threshold (weight 700 ≈ +1.5px stroke at 24px, scaling with font size; capped near weight 900). An already-bold face asked for its own weight is not double-bolded. Faux-italic (shear) and small-caps synthesis are not done — font-synthesis-style/-small-caps cascade but don't yet take effect.

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. Pin explicit values if a design depends on them; expect no visible effect.


Next: Text & Fonts · Animations & Transitions