It's a bummer that there's not a CSS selector for this kind of thing. Looks like a good solution.