Add unit tests for space key input in CSS.

Unit tests for pull request #6898.