Answer
The thermal expansion coeffiecient of fused quartz is about 150x smaller than that of mercury, so this approximation is roughly valid. It IS important to choose the materials of the vessel carefully so the vessel expansion can be ignored.