text-decoration-inset
Limited availability46% of usersExperimental
An experimental property that allows you to adjust the position of an underline or overline, pushing it closer to or further away from the text baseline.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyComingNot in Safari yet, so not every major browser supports it.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
0- Inherited
- No
- Applies to
- all elements
- Animation type
- byComputedValue
Quick example
span {
text-decoration: underline;
/* Pushes the underline 2px further down from the text */
text-decoration-inset: 2px;
}Values
autotext-decoration-inset browser support
BaselineLimited availabilityThis feature is not Baseline because it does not work in some of the most widely-used browsers.Not ready for production without a fallback.
Usage46%of people can use this54% use a browser without it.
Browsers
157+
146+
157+Mobile
157+Android
146+Android