Function style::sharing::checks::have_same_class

source ·
pub fn have_same_class<E>(
    target: &mut StyleSharingTarget<E>,
    candidate: &mut StyleSharingCandidate<E>,
) -> bool
where E: TElement,
Expand description

Whether a given element has the same class attribute as a given candidate.

We don’t try to share style across elements with different class attributes.