Performance: Full-bleed section within container
MEDIUM IMPACT
This affects the page's layout stability and paint performance by controlling how wide sections stretch beyond their containers.
<div class="container mx-auto relative"> <div class="absolute left-0 right-0 -mx-4 sm:-mx-6 bg-blue-500">Full-bleed content</div> </div>
<div class="container mx-auto"> <div class="w-screen bg-blue-500">Full-bleed content</div> </div>
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Using w-screen inside container | Normal | Multiple reflows on resize | High paint cost due to overflow | [X] Bad |
| Using absolute positioning with negative margins | Normal | Single reflow | Lower paint cost, no overflow | [OK] Good |