Interesting fact: A lot of modern gas cooktops have safety features that will cut the gas off when the electricity is out. The safety mechanisms are powered by electricity, so if they can't confirm that the operation is safe they fail with the gas valve shut off.
It comes as a surprise to most users because power outages are so rare. They just assume it will work until 8 years later when they try to cook something during the first long outage in their area.