Validate CSS first before parsing (saves a lot of parsing code)