text-decoration: underline; on an element, the line drawn will cross descenders.
text-decoration-skip one can control the behavior of the underline
text-decoration-skipCSS property specifies what parts of the element’s content any text decoration affecting the element must skip over. It controls all text decoration lines drawn by the element and also any text decoration lines drawn by its ancestors.
When set to
ink, the underline will skip over descenders:
The text decoration is only drawn where it does not touch or closely approach a glyph. I.e. it is interrupted where it would otherwise cross over a glyph.