Specificity Flashcards

1
Q

Which characteristic affects the thousands position in the specificity calculation of a style being applied?

A

The source of the style affects the thousands position. A style found in an element or in a style attribute affects the thousands position.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What affects the hundreds position in specificity calculations?

A

If a selector contains an ID selector, then it will affect the hundreds position in the specificity calculation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What affects the tens position in specificity calculations?

A

The existence of class, pseudo-class, and attribute selectors within a larger selector affect the tens position in specificity calculations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What affects the ones position in specificity calculations?

A

The occurrence of element (or simple) or pseudo-element selectors within a larger selector affect the ones position in specificity calculations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which features do not affect the specificity calculation?

A

The * selector, combinators (‘’, ‘ ‘, ‘>’, ‘+’, ‘~’) and the negation pseudo-class (:not(…)) don’t affect the specificity calculation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly