Performance: Position static
LOW IMPACT
Position static affects layout calculation and paint by using the default flow without extra positioning calculations.
div {
position: static;
}div {
position: relative;
top: 10px;
}| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| position: static | normal flow, minimal | 0 | minimal | [OK] Good |
| position: relative with offsets | normal flow + offset | 1 per element | increased | [X] Bad |