A decorated inline-block is underlined under its text only
Icon-only link (no text) - no line at all
on a coloured header: the link colour used to be drawn as a bar across the icon
Short text in a wide box - the line covers the text, not the box
inline-block, 220pt wide, containing "ab"
ab followed by more text on the same line
Wrapped text - one line per text line
inline-block, 90pt wide
aaa bbb ccc ddd eee fff and text beside it
Padding and a border are not underlined
the box's own padding and border sit outside its inline content
padded tag another
Truncated link - the line stays inside the clipped box
overflow: hidden, white-space: nowrap on an 80pt box; the line is clipped with the text
A long link title that is truncated and text beside it
inline-flex
an item's text is underlined, the rest of the 220pt container is not
flex item