Palo Alto has "private open space" (often balconies) and "common open space" requirements.
City council debated a few months ago if roof decks could count towards common open space; they now can, *unless* they're on the second floor, thanks to one persistent NIMBY councilmember.