Performance: Border radius (rounded corners)
MEDIUM IMPACT
Border radius affects the paint and composite stages of rendering, influencing how quickly the browser can draw and display rounded corners.
<div class="rounded-md"></div><div class="rounded-full" style="border-radius: 9999px;"></div>
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Large border-radius on many elements | Low | None | High (complex paint) | [X] Bad |
| Moderate border-radius on few elements | Low | None | Low (simple paint) | [OK] Good |