I am trying to figure out why "Item One" does not show as orange, below. According to specificity rules, the selector .one.two, should have a specificity score of 20 (two classes). .one li should have 11 (one class, one element). So it feels like it should show as orange, not blue.
Any idea why it doesn't?
Also, as a side question, why can't I have a space between the .one and the .two in the .one.two selector? That works for Chrome it seems, but not here.
Link to specificity calculations.
<!DOCTYPE html>
<html>
<head>
<style>
.one {
color: red;
}
.two {
color: green;
}
.one li {
color: blue;
}
.one.two {
color: orange;
}
</style>
</head>
<body>
<div>
<ul class="one two">
<li>Item One</li>
</ul>
</div>
</body>
</html>