Narrows selection to a specific state, e.g.: when it is hovered.

when_active(selector)

when_hover(selector)

when_focus(selector)

Arguments

selector

as returned by selectors.