### Pretty text underline A nicer alternative to `text-decoration: underline` where descenders do not clip the underline. Natively implemented as `text-decoration-skip-ink: auto` but it has less control over the underline. #### HTML ```html
Pretty text underline without clipping descending letters.
``` #### CSS ```css .pretty-text-underline { display: inline; font-size: 18px; text-shadow: 1px 1px 0 #f5f6f9, -1px 1px 0 #f5f6f9, -1px -1px 0 #f5f6f9, 1px -1px 0 #f5f6f9; background-image: linear-gradient(90deg, currentColor 100%, transparent 100%); background-position: 0 1.04em; background-repeat: repeat-x; background-size: 1px 1px; } .pretty-text-underline::-moz-selection { background-color: rgba(0, 150, 255, 0.3); text-shadow: none; } .pretty-text-underline::selection { background-color: rgba(0, 150, 255, 0.3); text-shadow: none; } ``` #### DemoPretty text underline without clipping descending letters.