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.
It is documented as part of the CSS Text Decoration specification.
Syntax
/* Usage 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;
}
/* Syntax */
text-decoration-skip-ink: auto;
text-decoration-skip-ink: all;
text-decoration-skip-ink: none;
/* Global values */
text-decoration-skip-ink: inherit;
text-decoration-skip-ink: initial;
text-decoration-skip-ink: revert;
text-decoration-skip-ink: revert-layer;
text-decoration-skip-ink: unset;
text-decoration-skip-ink Browser support
Widely available
Since
2015 95% global usage
This feature is well established and works across many devices and browser versions. It has been available across browsers since 2015.
64+
70+
15.4+
79+