Introduce the collapse-when directive