Drinking and driving is dangerous.
Texting and driving is dangerous.
Yes, texting while driving is criminal.
Both styles are common, are both grammatical too? And which is more common and preferred?
I, personally, find records of only the "Drinking and driving" type of structures on N-grams.
Regardless of which is common, both are grammatically sound;
"Drinking and driving" would take singular verb when it means or refers to "Drinking" while "driving", otherwise a plural verb would be used. For example;