Specificity Flashcards
Which characteristic affects the thousands position in the specificity calculation of a style being applied?
The source of the style affects the thousands position. A style found in an element or in a style attribute affects the thousands position.
What affects the hundreds position in specificity calculations?
If a selector contains an ID selector, then it will affect the hundreds position in the specificity calculation.
What affects the tens position in specificity calculations?
The existence of class, pseudo-class, and attribute selectors within a larger selector affect the tens position in specificity calculations.
What affects the ones position in specificity calculations?
The occurrence of element (or simple) or pseudo-element selectors within a larger selector affect the ones position in specificity calculations.
Which features do not affect the specificity calculation?
The * selector, combinators (‘’, ‘ ‘, ‘>’, ‘+’, ‘~’) and the negation pseudo-class (:not(…)) don’t affect the specificity calculation.