Style Invalidation
The process a browser uses to mark CSS rules as needing recalculation when the DOM or stylesheet changes.
Whenever a CSS class is added, removed, or an inline style is modified, the browser must recalculate which rules apply to each element. If the change is broad—such as modifying a class rule that matches thousands of elements—this style invalidation can trigger render invalidation and noticeably impact performance. Modern browsers optimize by limiting recalculation to elements that could actually be affected.