text-decoration-skip
Widely availableSince 201516% of usersExperimental
A broader property that defines which parts of an element's content should be skipped by its text decorations. For example, you can tell an underline to skip spaces or the edges of the box.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyClassicIt has worked everywhere since 2015.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
objects- Inherited
- Yes
- Applies to
- all elements
- Animation type
- discrete
Quick example
div {
text-decoration: underline;
/* Tells the underline to skip over any empty spaces between words */
text-decoration-skip: spaces;
}Values
noneobjectsspacesleading-spacestrailing-spacesedgesbox-decorationtext-decoration-skip browser support
BaselineWidely availableThis feature is well established and works across many devices and browser versions. It has been available across browsers since 2015.Safe to use without fallbacks.
Usage16%of people can use this84% use a browser without it.
Browsers
57+
12.1+Mobile
57+Android
12.2+iOS