During a recessive state the signal lines and resistor(s) remain in a high impedances state with respect to both rails.
During a dominant state the signal lines and resistor(s) move to a low impedance state with respect to the rails so that current flows through the resistor.