Expand description
Different checks done during the style sharing process in order to determine quickly whether it’s worth to share style, and whether two different elements can indeed share the same style.
Functions§
- have_
same_ class - Whether a given element has the same class attribute as a given candidate.
- have_
same_ parts - Whether a given element has the same part attribute as a given candidate.
- have_
same_ presentational_ hints - Whether two elements have the same same presentational attributes.
- have_
same_ style_ attribute - Whether two elements have the same same style attribute (by pointer identity).
- may_
match_ different_ id_ rules - Checks whether we might have rules for either of the two ids.
- parents_
allow_ sharing - Determines whether a target and a candidate have compatible parents for sharing.
- revalidate
- Whether a given element and a candidate match the same set of “revalidation” selectors.
- revalidate_
scope - Whether a given element and a candidate share a set of scope activations for revalidation.