According to the law of multiple proportions, when water forms, the mass ratio of hydrogen to oxygen is variable.