-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Labels
PerformanceRelated to a performance improvementRelated to a performance improvementResearchTask that need some investigation and experimentTask that need some investigation and experiment
Description
Upon matching a selector, instead of returning a true/false answer, we should be able to return a Branched value depending on the Context. This would allow faster re-matching on context change.
With that, we should be able to build a rules tree (Cascade) where rules appears in an element's associated list not only if it matches, but if it may match in at least one context. Then, we can share rule trees between context and get faster style computing in new context (at the cost of needing to evaluate context on branched values even for the default cascade).
We may need a way to store context efficiently, specifically for selectors like :focus-within that may match a huge number of contexts...
Metadata
Metadata
Assignees
Labels
PerformanceRelated to a performance improvementRelated to a performance improvementResearchTask that need some investigation and experimentTask that need some investigation and experiment
Type
Projects
Status
📮 Backlog