:has() subtree benchmarkCompare 0, 1 or 2 :has() checks against a fresh tree with a hidden subtree.
Ready.
| Batch | :has count | Depth / leaves | Elements | Samples | Build DOM | Attach | Forced evaluation | Remove | Evaluation mode |
|---|
| Batch | Phase | Repeat | :has count | Elements | Build DOM | Attach | Evaluation | Remove | Color check |
|---|
#subject:has(.first):has(.second). Both match the first child;
the second lookup triggers subtree-filter construction.depth, leaves, siblings, mode
(compare, 0, 1, 2, custom),
count, repeats, warmups, flush
(layout-color or color), pause, slow,
build, stress (1 or 0).
Settings load without running a trial.Test document: