textOverflow
What happens to text that does not fit the space available to it.
Path
…elements.<element>.styles.textOverflow
Elements Supported
Value
"CLIP"(default) — Text is cut at the boundary with no indication that it continues."ELLIPSIS"— Text is cut at the boundary and a trailing ellipsis marks the truncation.
Platform bindings
Figma
Disposition: bound · Realised by: node.textTruncation
Remaps the schema’s two values to Figma’s truncation vocabulary: ELLIPSIS becomes ENDING and CLIP becomes DISABLED. Both schema values are covered. Ordering matters — maxLines is honoured only while truncation is ENDING, so it is deliberately applied after this key.
CSS
Disposition: bound · Realised by: rule textTruncation
Resolved jointly with
This key does not map on its own. Its rule’s ordered case table is linked above.
textTruncation — CSS
Figma key
Reads from textTruncation (DISABLED→CLIP, ENDING→ELLIPSIS). See ADR 062 — Text Truncation.
Decisions
- ADR-062 — Text overflow style keys (
textOverflow,maxLines) - ADR-113 — Style defaults belong to the schema
Rules
| Rule | Statement |
|---|---|
| DSPEC-44 | Every property of Styles declares a default, and its value validates against that property’s own schema |
| DSPEC-45 | A declared default is a literal, never a TokenReference, PropBinding or Conditional |
| DSPEC-47 | Jointly resolved keys are stated as an ordered case table over a declared operand set, not as prose |
Source
| Format | File |
|---|---|
| JSON Schema | packages/schema/schema/styles.schema.json |
| TypeScript | packages/schema/types/Styles.ts |
| Specification | §4.1a, §11 |