I am thinking about selector specificity and one way to represent it is to store count in array for IDs, classes and tags. Another way is to represent it as number in base b = max(count of IDs, count of classes, count of tags) + 1. I am just wondering what is maximal value for b in real life. Did you ever found b to be more then, i.e., 2^6? I suppose that in theory there is no upper bound for b, but I also suppose that 99.999% of pages have very limited one. Thanks in advance for sharing your experience.