specificity
specificity copied to clipboard
Change the specificity to "a, b, c" three-segment representation
specificityArray: the result as an array of numbers e.g. [0, 1, 0, 0]
Selectors Level 3 only has a,b,c
Safari's developer tools also only show a,b,c
.
and 'css-specificity-calculator' site: https://polypane.app/css-specificity-calculator/#selector=.foo%3Ahover%20%3E%20h1
@yisibl Polypane actually uses specificity! The first 0 is there to represent inline styles, which trump all. Since they are not applicable when dealing with CSS selectors directly, we hide them for clarity.