The law seems ambiguous and poorly crafted. It says
"Headlights are required to be on from sunset to sunrise, when wipers are in use, or when visibility is less than 1000 feet." Presumably one of those three conditions need to be met to mandate the use of headlights in Illinois.
So okay, if I use Rain-X my wipers may not be in use. Visibility can clearly be well over 1000 feet during a daylight rain storm, even when MOST cars need wipers. So if it's pouring rain, and I can see clearly for at least 1000 feet without the assistance of my wipers, I can legally drive without my headlights it would seem. HOWEVER, if I were to use my windshield washer fluid on a bright, clear sunny day, I would need to turn on my headlights for that brief moment the wipers are in use. Right?
I won't delve into the definition of the word "visibility" right now, but suffice it to say it is very subjective and has been litigated to death in the aviation realm, where there are multiple meanings for that one single word.
And before people go off, I get the safety aspect of this and I agree with it. I turn on my headlights 24/7 when I'm operating a motor vehicle, weather and time of day be damned. I believe they save lives. That doesn't mean I don't like to find loopholes in poorly crafted laws.