Performance: Complex selector combinations
MEDIUM IMPACT
This affects how fast the browser matches CSS rules to HTML elements during style calculation, impacting page load and rendering speed.
.highlighted-strong { color: red; }
div > ul li:first-child > a:hover span.highlighted strong
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Complex descendant and pseudo-class selectors | Many DOM traversals | 0 | Low | [X] Bad |
| Single class or ID selectors | Minimal DOM checks | 0 | Low | [OK] Good |