Possible Duplicate:
How do I get this CSS text-decoration override to work?
Chrome and Firefox are conspiring to thwart my attempt to have a td with the line-through text-decoration, sometimes disabled by a span, like so:
<style type="text/css">
tr.st td {
text-decoration: line-through;
}
tr.st td span.unstrike{
text-decoration: none;
background:yellow;
}
tr.st td span#unstrike-id{
text-decoration: none;
background:yellow;
}
tr.st td span.unstrike-important{
text-decoration: none ! important;
background:yellow;
}
</style>
<table border>
<tbody>
<tr>
<td>normal</td>
</tr>
<tr class="st">
<td>struck out</td>
</tr>
<tr class="st">
<td>struck out <span class="unstrike">unstrike class: shouldn't I be normal?</span></td>
</tr>
<tr class="st">
<td>struck out <span id="unstrike-id">unstrike-id identifier. Shouldn't I be normal?</span></td>
</tr>
<tr class="st">
<td>struck out <span class="unstrike-important">unstrike-important: shouldn't I be even more normal?</span></td>
</tr>
</tbody>
</table>
I'm squinting at the spec and I don't get it.
Special case for text-deocration? What gives?
demo here