Returns whether a given class is active for element.
The class can be activated if element or one of its ancestors has the given class and it can be deactivated
if element or one of its ancestors has the negated version of the given class. The negated version of the
given class is just the given class with a no- prefix.
Whether the class is active is determined by the closest ancestor of element (where element itself is
closest ancestor) that has the given class or the negated version of it. If neither element nor any of its
ancestors have the given class or the negated version of it, then the default activation will be returned.
In the paradoxical situation where the closest ancestor contains both the given class and the negated
version of it, the class is considered active.
Returns whether a given class is active for
element
.The class can be activated if
element
or one of its ancestors has the given class and it can be deactivated ifelement
or one of its ancestors has the negated version of the given class. The negated version of the given class is just the given class with ano-
prefix.Whether the class is active is determined by the closest ancestor of
element
(whereelement
itself is closest ancestor) that has the given class or the negated version of it. If neitherelement
nor any of its ancestors have the given class or the negated version of it, then the default activation will be returned.In the paradoxical situation where the closest ancestor contains both the given class and the negated version of it, the class is considered active.