Style Engine
The browser component that matches CSS selectors against DOM nodes and resolves the final computed style for each element.
The Style Engine reads the CSSOM and traverses the DOM to determine which CSS rules apply to each element. This matching process was historically O(n×m) — every selector tested against every element — until browsers began optimizing with bloom filters and selector indexing. Modern engines classify rules by their rightmost selector (the "key selector") so expensive selectors aren't tested on unqualified elements.
The output of style matching is a tree of computed styles where cascade order and specificity are already resolved. The Style Engine runs again whenever the DOM changes, CSS is updated, or pseudo-classes like `:hover` activate. A significant DOM change can force the entire style tree to be recalculated.