Expand description
Applicable declarations management.
StructsΒ§
- Applicable
Declaration Block  - A property declaration together with its precedence among rules of equal specificity so that we can sort them.
 - Cascade
Priority  - The cascade-level+layer order of this declaration.
 - Scope
Proximity  - Proximity to the scope root.
 
ConstantsΒ§
- PROXIMITY_
INFINITY π - Sacrifice the largest possible value for infinity. This makes the comparison trivial.
 - SOURCE_
ORDER_ πBITS  - Blink uses 18 bits to store source order, and does not check overflow [1]. Thatβs a limit that could be reached in realistic webpages, so we use 24 bits and enforce defined behavior in the overflow case.
 - SOURCE_
ORDER_ πMASK  - SOURCE_
ORDER_ πMAX  
Type AliasesΒ§
- Applicable
Declaration List  - List of applicable declarations. This is a transient structure that shuttles declarations between selector matching and inserting into the rule tree, and therefore we want to avoid heap-allocation where possible.