# Content is cut off at larger text spacing: rule own-textabstand

The finding means that with the text spacing values of WCAG 1.4.12 applied, text no longer fits its container and is clipped. The cause is a container that cannot grow: a fixed height or width combined with overflow: hidden or an ellipsis. Minimum heights and padding instead of fixed dimensions solve it.

## The message

- Identifier: `own.textabstand`
- Type of check: automatic
- Severity: serious
- Success criterion: [WCAG 1.4.12 Text Spacing](https://barrierepruefung.de/en/knowledge/wcag/1-4-12-text-spacing)
- Meaning: When line height, letter, word and paragraph spacing are set to the values named in WCAG 1.4.12, the content no longer fits its container and is cut off.
- Impact: People who set larger spacing in order to read lose text by doing so — the setting meant to help takes the content away.
- Fix: Avoid fixed heights for text areas and let containers grow with their content instead of clipping it.

## What the rule checks

The rule imitates someone who increases spacing to make reading easier. On the loaded page it applies
all four values of the criterion at once: a line height of 1.5 times, letter spacing of 0.12 times, word
spacing of 0.16 times and paragraph spacing of 2 times the font size. It measures before and after
whether content overflows its container.

Only elements that can clip anything are examined: those with `overflow: hidden` or
`overflow: clip`, and those with `text-overflow: ellipsis`. An element that simply grows is not
reported. A finding means the content fitted before and no longer fits with the new spacing; overflow
that already existed beforehand is not part of this criterion.

Text that runs over other content without being clipped is not detected by this rule. Whether a page
blocks the spacing with `!important` in a `style` attribute is checked by the axe rule
`avoid-inline-spacing`.

## Common causes

- **Fixed height with hidden overflow.** Cards, teasers and tiles get a `height` and
  `overflow: hidden` so that they all line up. With a line height of 1.5 the last line disappears.
- **Buttons and tabs with a fixed width.** Labels in navigation or buttons with `width`,
  `white-space: nowrap` and `overflow: hidden` get wider with letter and word spacing, and the end is
  cut off.
- **Ellipses.** Titles with `text-overflow: ellipsis` that were fully visible before get cut once the
  spacing increases.
- **Line clamping.** `-webkit-line-clamp` cuts after a fixed number of lines. When the spacing makes
  the text need more lines, the end is lost.

## How to fix it

Replace fixed heights with minimum heights. The container looks the same by default and grows when
the text needs more room:

```css
/* before */
.teaser {
  height: 12rem;
  overflow: hidden;
}

/* after */
.teaser {
  min-height: 12rem;
}
```

Let the layout keep cards in a row the same height, without a fixed height:

```css
.card-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1.5rem;
}
```

Give buttons and navigation items padding instead of a fixed width, and allow the label to wrap:

```css
.button {
  min-width: 8rem;
  padding: 0.5em 1em;
  white-space: normal;
}
```

If an ellipsis has to stay, for instance in a narrow column, the criterion accepts it as long as the
full text remains available: on the page the entry links to, or on focus or activation. A `title`
attribute on its own does not reach keyboard users.

To check by hand, a style sheet with the same values is enough, added through the developer tools or
a bookmarklet:

```css
* {
  line-height: 1.5 !important;
  letter-spacing: 0.12em !important;
  word-spacing: 0.16em !important;
}

p {
  margin-bottom: 2em !important;
}
```

When the criterion counts as met is explained on the page
[about WCAG 1.4.12](https://barrierepruefung.de/en/knowledge/wcag/1-4-12-text-spacing).

## Sources

- [W3C Understanding Success Criterion 1.4.12: Text Spacing](https://www.w3.org/WAI/WCAG22/Understanding/text-spacing), retrieved on 2026-11-27
- [W3C Techniques, C36: Allowing for text spacing override](https://www.w3.org/WAI/WCAG22/Techniques/css/C36), retrieved on 2026-11-27
- [W3C Techniques, C35: Allowing for text spacing without wrapping](https://www.w3.org/WAI/WCAG22/Techniques/css/C35), retrieved on 2026-11-27
- [W3C Techniques, F104: Failure of Success Criterion 1.4.12 due to clipped or overlapped content when text spacing is adjusted](https://www.w3.org/WAI/WCAG22/Techniques/failures/F104), retrieved on 2026-11-27

---

As of: 2026-11-29 · https://barrierepruefung.de/en/knowledge/rules/own-textabstand
