pascal's law states that
Pressure inside a fluid at rest is same at all points if they are at the same height. What does this same height mean?
Here 'same height' means points along the same horizontal line which is parallel to the free surface. It also means that points at depth inside the liquid.