I have an example of a selector with 11 classes. According to W3Schools, a class is worth 10 points, meaning that 11 classes should clearly trump a single id. Why is it not doing so in this case? The selector is correct and only applies the blue colour when adding !important.
The code:
#test { color: red } /* 100 points */
div .test { color: green } /* 11 points */
.test1.test2.test3.test4.test5.test6.test7.test8.test9.test10.test11 {
color: blue; /* works with !important */
} /* not 110 points? */
p { color: orange } /* 1 point */
<div>
<p id='test' class='test1 test2 test3 test4 test5 test6 test7 test8 test9 test10 test11'>Test</p>
</div>
Are W3Schools wrong or am I missing something?