terribleMia’s avatarterribleMia’s Twitter Archive—№ 7,704

  1. This might be nothing, but… What about a "proximity" combinator for selectors? Opt-in, lower weight than specificity, but higher than source-order. Using @ for demo purpose: .inner @ a { color: blue; } .outer @ a { color: red; } Same specificity, so "closer" descendant wins?
    1. …in reply to @TerribleMia
      Not sure of the interaction with a descendant or child combinators. For example: .inner a { color: blue; } .outer @ a { color: red; } My instinct is that .inner would still win, because outer has invoked proximity. I'm sure there are a million other edge cases to consider…