For urban spaces in Credit 5.1, does vegetated space need to take up 20% of site area or 20% of building footprint?

I assumed it was of site area, but recently discovered a question which implied that 20% of building footprint is applicable..

I also need help with the question I posted right below, also regarding Urban Spaces for this credit.

Thank you.