Roofing elements with cavities