CSSParser
CSSParser copied to clipboard
Use hash-based rule lookup
Right now, looking up matching rules for an element requires looping through all rules in the sheet. This can be improved by instead hashing rules based on their most-specific type of selector.