coderef

text-decoration-skip-spacesLimited availability

The text-decoration-skip-spaces CSS property sets whether text decoration lines (such as underlines and overlines) skip over whitespace characters. You can use this to prevent decorations from being drawn under spaces, which is sometimes more visually appealing.

Not yet supported in all major browsers — check the table and provide a fallback.

Browser support

DesktopChrome
1–154Not supported
155+Supportedsince Oct 6, 2026
Current: 155
Edge
✕Not supportedup to 154
Current: 154
Firefox
✕Not supportedup to 157
Current: 157
Safari
✕Not supportedup to 27
Current: 27
MobileChrome Android
✕Not supportedup to 155
Current: 155
Firefox Android
✕Not supportedup to 157
Current: 157
Safari iOS
✕Not supportedup to 27
Current: 27

How to use

Not supported in Edge, Firefox, Safari, Chrome Android, Firefox Android, Safari iOS. Use feature detection below and provide a fallback (or a polyfill) for those browsers.

Example

Full syntax and examples are on MDN — see the links below.

Feature detection

CSS · check before using
@supports (text-decoration-skip-spaces: initial) {
  /* styles that rely on text-decoration-skip-spaces */
}

/* or in JavaScript */
if (CSS.supports("text-decoration-skip-spaces", "initial")) {
  // use it
}

Sub-features

Support for each part of the feature (5). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
text-decoration-skip-spaces155✕✕✕✕✕✕
text-decoration-skip-spaces.all155✕✕✕✕✕✕
text-decoration-skip-spaces.end155✕✕✕✕✕✕
text-decoration-skip-spaces.none155✕✕✕✕✕✕
text-decoration-skip-spaces.start155✕✕✕✕✕✕