Marines on masks

Snoqualmie Valley Marines Testing Masks with Bear Spray

Thought experiment,

If bear spray particles (3-6 microns in size) can get through or around a mask, how does that same mask prevent you…

a) getting infected or
b) infecting others

… with virus particles that are 0.1-0.3 microns in size?