Selecting elements with a certain background colour without jQuery

I want to select a bunch of spans in a div whose CSS contains a particular background colour. How do I achieve this?

(This is the same question with this question, except I’m looking for non-jQuery solution.)

151 thoughts on “Selecting elements with a certain background colour without jQuery”