Css selectors

In the context of CSS, how does a type selector take precedence over a class selector when employing a descendant combinator despite specifying chaining and specificity in the code?