ENH: Stricter validation of line style rcParams (and extended accepted types for grid.linestyle)
#8040
+111
−19
grid.linestyle)
#8040