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§
- Whether a given element has the same class attribute as a given candidate.
- Whether a given element has the same part attribute as a given candidate.
- Whether two elements have the same same presentational attributes.
- Whether two elements have the same same style attribute (by pointer identity).
- Checks whether we might have rules for either of the two ids.
- Determines whether a target and a candidate have compatible parents for sharing.
- Whether a given element and a candidate match the same set of “revalidation” selectors.
- Whether a given element and a candidate share a set of scope activations for revalidation.