Does anyone know why the span text is still underlined even though I specified not to be so. The color is overwritten on the span child, but not the text-decoration-line?
p {
width: 300px;
text-decoration-line: underline;
color: #333;
}
span {
text-decoration-line: none;
color: #F00;
display: inline-block;
}
#span2 {
display: inline;
}
<p>Lorem ipsum <span id="span1">THIS IS NOT UNDERLINED and should sit next to "Lorem ipsum", not below it</span> sit amet, consectetur adipiscing elit. Nam imperdiet ante sit amet eros fermentum faucibus</p>
<p>Lorem ipsum <span id="span2">THIS IS NOT UNDERLINED and should sit next to "Lorem ipsum", not below it</span> sit amet, consectetur adipiscing elit. Nam imperdiet ante sit amet eros fermentum faucibus</p>