Is it legal to drive with your dome light on?

Yes, however, it is more difficult to see at night with a light on in the vehicle. The light affects night vision. Inattentive driving may be involved, depending why the driver has the light on.