Expand description
A @scope
rule.
Structs§
- Scope
Bounds - Bounds of the scope.
- Scope
Root Candidate - A scope root candidate.
- Scope
Rule - A scoped rule.
- Scope
Subject Map - A map containing simple selectors in subjects of scope selectors. This allows fast-rejecting scopes before running the full match.
Enums§
- Implicit
Scope Root - Types of implicit scope root.
- Implicit
Scope Target - Target of this implicit scope.
- Scope
Target - Target of this scope.
Functions§
- collect_
scope_ roots - Collect potential scope roots for a given element and its scope target. The check may not pass the ceiling, if specified.
- element_
is_ outside_ of_ scope - Given the scope-end selector, check if the element is outside of the scope. That is, check if any ancestor to the root matches the scope-end selector.
- parse_
scope 🔒 - scope_
selector_ list_ is_ trivial - Determine if this selector list, when used as a scope bound selector, is considered trivial.