Support CSS selectors up to 1022 charachters long (see #6412)