CSS selector matching, parsing and serializing