v155 · css
CSS4 text-decoration-skip-spaces
The text-decoration-skip-spaces CSS property controls whether text decoration lines — underlines, overlines, and line-throughs — are drawn over white space. It can skip spaces at the start and/or end of a line (start, end), skip all spaces and word separators (all), or decorate spaces like any other character (none). It applies to all decoration lines drawn by the element and any drawn by its ancestors, and ships enabled by default in Chrome 155 per the milestone=155 listing.
The milestone=155 listing files this under “Enabled by default”, and both BCD and webstatus.dev record Chrome 155 as shipped (desktop) — but as of 2026-10-18 the runtime flag record for CSSTextDecorationSkipSpaces still reads status: "experimental" at trunk, BCD records no Chrome-for-Android version, and no other engine has shipped or signalled. The draft also carries an open editor’s issue on the initial value (below). Feature-detect before relying on it: CSS.supports("text-decoration-skip-spaces", "none"). To test in an older or not-yet-flipped Chrome: chrome://flags/#enable-experimental-web-platform-features or --enable-blink-features=CSSTextDecorationSkipSpaces.
Syntax
/* Keyword values (value grammar, verbatim from the spec):
none | all | [ start || end ] */
text-decoration-skip-spaces: none;
text-decoration-skip-spaces: all;
text-decoration-skip-spaces: start;
text-decoration-skip-spaces: end;
text-decoration-skip-spaces: start end; /* the spec's initial value */
| Value | none | all | [ start || end ] |
|---|---|
| Initial | start end — disclosed: the draft carries an open editor’s issue asking whether the initial value should instead be none for web compatibility (cross-referencing csswg-drafts #4653); re-check the spec before depending on default-state rendering |
| Applies to | all elements (including ::before and ::after pseudo-elements) |
| Inherited | yes |
| Percentages | N/A |
| Computed value | specified keyword(s) |
| Canonical order | per grammar |
| Animation type | discrete |
Per standard CSS error handling, a declaration whose value does not match the grammar is invalid and ignored; there are no out-of-range or exception conditions beyond that.
Source: property definition table quoted from CSS Text Decoration Level 4 (ED), fetched 2026-10-18Values
The spec defines a spacer as “any typographic character unit in Unicode General Category Zs except U+202F NARROW NO-BREAK SPACE”. The property states whether and where decoration lines skip these, and the skipping also drops any adjacent letter-spacing or word-spacing:
none- Spacers are not skipped — they are decorated just like any other character.
all- Spacers and all word separators are skipped, along with any adjacent letter-spacing or word-spacing, wherever they occur in the line.
start- Spacers at the start of a line are skipped, along with any adjacent letter-spacing or word-spacing.
end- Spacers at the end of a line are skipped, along with any adjacent letter-spacing or word-spacing.
The property controls all decoration lines drawn by the element, and also any decoration lines drawn by its ancestors — so an outer underline (for example from a link wrapping a span) obeys the innermost element’s text-decoration-skip-spaces for the text it paints there, the same inheritance-of-painting model the rest of the text-decoration-skip-* family uses.
Examples
<p class="quoted">
<a href="/где-то"> a link whose label has leading and trailing spaces </a>
</p>
<style>
/* Don't draw the underline under the leading/trailing spaces */
.quoted a { text-decoration-skip-spaces: start end; }
/* Decorate every character, spaces included (e.g. for <ins>/<del>
diff views where the extent of the change must stay visible) */
ins, del { text-decoration-skip-spaces: none; }
/* Underline only the words, skipping every space and word separator */
.words-only { text-decoration-skip-spaces: all; }
</style>
The use of none on ins/del mirrors the spec’s own suggestion that those elements may warrant none in the UA default stylesheet so edits to white space stay visible. No Chrome Platform Showcase demo exists for this feature yet (the showcase route /v155/css4-text-decoration-skip-spaces/ HEAD-checked 404 on 2026-10-18, so no iframe is embedded); the showcase v155 index lists what has been built. Reference renderings live in the WPT suite: text-decoration-skip-spaces-001, -002, -003, -004 (linked as sample_links on the ChromeStatus record).
Browser compatibility
| Browser | text-decoration-skip-spaces | none / all / start / end |
|---|---|---|
| Chrome | 155 | 155 |
| Chrome Android | No | No |
| Edge | No | No |
| Firefox | No | No |
| Safari | No | No |
Per-version data from BCD css/properties/text-decoration-skip-spaces.json (verified 2026-10-18; the file records the property and all four value subfeatures at Chrome 155, with chrome_android, edge, firefox and safari explicitly false — Edge is not a BCD mirror here, so its first supporting version is genuinely unrecorded). Note Safari’s long-shipped text-decoration-skip shorthand-ish property covers different skipping dimensions and is not this property.
Security and privacy
The property is a paint-level typographic control with no scripting, network, or state surface. Its specification states, verbatim: “No new privacy considerations have been reported on this specification.” and “No new security considerations have been reported on this specification.”
Source: CSS Text Decoration Level 4 — Privacy Considerations · Security Considerations, fetched 2026-10-18Specifications
| Specification | Status |
|---|---|
CSS Text Decoration Module Level 4 — text-decoration-skip-spaces | Editor’s Draft |
See also
- Chrome Platform Status — CSS4 text-decoration-skip-spaces (API record)
- blink-dev intents: Intent to Prototype · Intent to Ship
- Chromium implementation bug 40862777 · runtime flag
CSSTextDecorationSkipSpaces - MDN —
text-decoration-skip-ink(the Baseline-widely sibling that skips glyph descenders rather than spaces) - css-text-decor-4 — the text-decoration-skip family
- Chrome Platform Showcase — v155 index