Minecraft wiki entry for Graphics_setting, associated text: Leaves are the only block subject to this - other transparent cubes such as spawners are still rendered transparent, likely due to their comparative rarity.