If "A dog rests on a mattress while a old woman sits on the floor.", does this mean that "A dog and woman are both resting on a mattress"?
yes