2 ms·
You might want to read on specificity because it’s a huge spanner in your assumptions.
by masklinn 3y ago
You might want to read on specificity because it’s a huge spanner in your assumptions.
- lioeters 3y ago> Specificity is the algorithm used by browsers to determine the CSS declaration that is the most relevant to an element, which in turn, determines the property value to apply to the element. The specificity algorithm calculates the weight of a CSS selector to determine which rule from competing CSS declarations gets applied to an element. https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity#how_is_specificity_calculated https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity...