text-decoration-skip-ink
Controls how underlines are drawn when they cross the 'descenders' of characters (like the tails on 'g', 'j', or 'p'). Setting it to 'auto' makes the line skip over the tails for a cleaner look.
Quick example
p {
text-decoration: underline;
/* Ensures the underline doesn't cut through the tails of letters like 'y' or 'q' */
text-decoration-skip-ink: auto;
}Quick facts
Initial value
autoInherited
Yes
Applies to
all elements
Animation type
discrete
Values
autoallnonetext-decoration-skip-ink Browser Support
Widely availableSince 201595% global usage
This 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.
64+
70+
15.4+
79+