Water Repellent or Waterproof

What is the difference,  waterproof or water repellent..?

Waterproof fabric or water repellent
Waterproof fabric or water repellent..?

Water Proof

When is a fabric waterproof..?

Water Repellent

When is a fabric Water repellent.?