I created an inline-block span inside u and s tags, hoping it would display with both strike-through and underline text decorations, but unfortunately, neither of them appeared.
If I set its text-decoration to inherit, it will only inherit the text decoration from its parent, not from any other ancestors.
How can I achieve this goal: while keeping it as inline-block, it should inherit the text decorations of all its ancestors?
span {
display: inline-block;
}
<u>
<s>
yes <span>man</span> no
</s>
</u>