Creates an instance of ClassStrategy.
An object containing a function to filter class names.
Generates a CSS selector part for the given element based on its class names.
The DOM element for which to generate the selector.
A SelectorPart object containing the selector name and penalty, or null if no valid class name is found.
ClassStrategy is a strategy for generating CSS selectors based on class names. It implements the Strategy interface.