According to Specificity Hierarchy ID style should be over tag style, but on the following code snippet, the opposite is happening!
I expect the table to be blue, but it is red, can anyone explain that?
#body table {
background: red;
}
#table {
background: blue;
}
<html>
<head>
</head>
<body id="body">
<table id="table">
<tr>
<th style="position: sticky;
top: 0;
z-index: 1;
background: gray;">something</th>
</tr>
<tr><td>ha</td></tr>
<tr><td>ha</td></tr>
<tr><td>ha</td></tr>
<tr><td>ha</td></tr>
</table>
</body>
</html>