Minecraft wiki entry for Fluid, associated text: fluid blocks are non-solids in the same way that air is, so placing a solid into a fluid block, source or flowing, succeeds if placement detects the side of a solid block through the fluid.