css parser unit test. bug fixes.