TAINAN, Taiwan—This was the revenge of the “strawberry generation.”

The tumult that swept Taiwan’s independence-leaning Democratic Progressive Party to power over the weekend, crushing the Kuomintang, or Nationalist Party, began as a revolt among young people once disparagingly referred to by their elders as strawberries—soft, self-satisfied and apathetic.

The...