blob: 3af0e501c689c9df57c88692f572ec6279d14a9b [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../resources/runner.js"></script>
<script src="resources/utils.js"></script>
</head>
<body>
</body>
<script>
createDOMTree(document.body, 3, 3);
PerfTestRunner.measureTime({
description: "Measures the performance of a solo pseudo selector.",
run: function() {
var rule = applyCSSRule("div:after { content: 'after'; }");
forceStyleRecalc(document.body);
rule.remove();
forceStyleRecalc(document.body);
},
tracingCategories: 'blink',
traceEventsToMeasure: [
'Document::updateStyle',
'Document::recalcStyle',
'Document::rebuildLayoutTree'
]
});
</script>
</html>