CSS Specificity

CSS Specificity
0.0 0

#1

Hello everyone. Please what is the specificity for this selector, h1 + p::first-letter? MDN says it is 3. I think it should be 1.


#2

This tool is great for visualizing and comparing specificites. According to it, h1 + p::first-letter has specificity of 3 for elements and pseudo-classes.

http://specificity.keegan.st/