Minecraft wiki entry for Magma_Block, associated text: Blocks that are the height of a trapdoor or lower (such as snow layers, carpet, repeaters or comparator) do not prevent a magma block from damaging mobs and players above it.