I have a module which is a table actually. The table.component.html source code as follow:
<table border=1>
<theader></theader>
</table>
And the theader.component.html source code as follow:
<thead #theader>
<tr><td class="alignCenter underlineText">Table Header</td></tr>
</thead>
Furthermore, the content of style.css as follows:
.alignCenter
{
text-align: center;
}
.underlineText
{
text-decoration: underline;
}
table
{
border-spacing: 0;
border-collapse: collapse;
width:1660px;
}
I don't know why the text "Table Header" does not align center. However, the underline decoration works.
Even the computed CSS show the text already aligned. I attached a screen dump for your reference.
This is my app in stackblitz.

theader, you are breaking the basic semantic structure for a table. This can result in unexpected issues, like the one you are facing now.