Sass, the handling of selectors containing multiple #-symbols (#12832)

After the first commit, a test case has been downloaded and added to
w3ctests. The indentation of a production was also changed in an
attempt to more clearly express its meaning.

Change-Id: I32356d1fcbafada982a5d3e22f0821e554cc6c8a