The rule
Moisture can collect in a vent. The code gives it somewhere to go: every vent is level or sloped so it drains back to the drain it serves.
A sag is the real problem. It can hold water and block the vent, so the vent can't do its job.
On a long horizontal vent, the grade is toward the connection to the drain, not toward the roof.
On the job
- Hanger spacing matters on horizontal vents. A hanger skipped in an attic can leave the pipe sagging by the time the insulation goes in.
- Use a level or a line before you close the ceiling. A vent that looks fine from one end can sag in the middle.
- Vents that rise before they run horizontal should still slope back to the drain along the horizontal part.
The inspector and your city's adopted edition have the final word.