California on Wednesday unveiled preliminary regulations for autonomous-driving cars, a long-awaited development required before any of the vehicles can be sold to consumers.

The proposed rules hold motorists responsible for obeying traffic laws, regardless of whether they are at the wheel. Deciding if the car or its occupant is responsible for accidents and other mishaps has been at the center of debates over how to regulate driverless cars.

Autonomous...