Performance: Border radius
LOW IMPACT
Border radius affects the paint and composite stages of page rendering, influencing how quickly rounded corners appear on screen.
border-radius: 0.5rem; box-shadow: none;
border-radius: 50%; box-shadow: 0 0 10px rgba(0,0,0,0.5);
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| border-radius: 0.5rem; | none | none | low paint cost | [OK] Good |
| border-radius: 50% with box-shadow | none | none | high paint and composite cost | [X] Bad |