I want to select all the elements that have two classes, a and b, in that order.
<element class="a b">
If those elements have no other classes, you can select them by attribute
There's also the attributes-starts-with, and -ends-with selector, and the attribute-contains selector, that would pick up the elements even if they did have more classes
note : this would also match
...class="what a bad idea"
Plain JS supports the attribute selectors in
But this is a bad idea, it shouldn't matter what order the classes are in, and if it does, you're doing something wrong.