Module style::applicable_declarations
source · Expand description
Applicable declarations management.
Structs§
- A property declaration together with its precedence among rules of equal specificity so that we can sort them.
- The cascade-level+layer order of this declaration.
- Proximity to the scope root.
Constants§
- Sacrifice the largest possible value for infinity. This makes the comparison trivial.
- 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.
Type Aliases§
- 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.