chromium/third_party/blink/perf_tests/css/ChangeStylePairOfNthChildSelector.html

<!DOCTYPE html>
<html>
<head>
    <script src="../resources/runner.js"></script>
    <script src="resources/utils.js"></script>
</head>
<body>
</body>
    <script>
        createRegularDOMTree();
        PerfTestRunner.measureTime({
            description: "Measures the performance of a pair of nth-child selectors.",
            run: function() {
                var rule = applyCSSRule("div:nth-child(1) div:nth-child(1) div { cursor: crosshair; }");
                forceStyleRecalc(document.body);
                rule.remove();
                forceStyleRecalc(document.body);
            },
            tracingCategories: 'blink',
            traceEventsToMeasure: [
                'Document::updateStyle',
                'Document::recalcStyle',
                'Document::rebuildLayoutTree'
            ]
        });
    </script>
</html>