The rule
IRC 2021 R806.2: "The minimum net free ventilating area shall be 1/150 of the area of the vented space." The area is the attic floor (the ceiling below it), not the roof slope. 1/300 is allowed when 40 to 50% of the vent area sits high, within 3 ft of the ridge, the rest in the bottom third, and in climate zones 6, 7 and 8 a Class I or II vapor retarder is on the warm side of the ceiling.