TIL you can do #myId#myId#myId span { ... } and it makes a difference over #myId span { ... }

Open link in next tab

Specificity - CSS: Cascading Style Sheets | MDN

https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity#increasing_specificity_by_duplicating_selector

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.

Specificity - CSS: Cascading Style Sheets | MDN

Adding the same id multiple times increases the specificity of a selector and thus overrides other selectors.

e.g.

#myId span {color: red; }
#myId#myId#myId span { color: blue; }

Codepen