TORONTO - Legislation passed Wednesday will require Ontario schools to drop trans fat from school cafeterias, vending machines and tuck shops.

Foods that naturally contain small amounts of trans fat, such as beef and milk, will be allowed.

Trans fats, often found in french fries and other fast-food cafeteria staples, are being targeted around the world by advocates of healthy eating, who say the processed oil contributes to a host of health problems, including childhood obesity.

Chocolate bars, potato chips and soft drinks had already been banned from Ontario's elementary schools.

The legislation enshrines that policy in law and will eventually expand the junk food ban to include high schools.

The Education Ministry says the province will also look at establishing nutrition standards for foods available in schools.

"It's clear that we are moving in a healthier direction by dropping trans fat from schools,'' said Education Minister Kathleen Wynne.

"Giving students healthier options will help them stay healthy and have more energy for learning.''