isolation: Stacking Context Tanpa z-index

The workshop’s web shop as a lunch box with compartments: write isolation, Rara’s tap shows whether the menu is above the badge, and the browser’s paint read…

Why it matters

Components with a z-index: 10 inside (badges, tooltips, dropdowns) often poke through the site’s header or modal. The old way to trap them was opacity: 0.99 or transform, which bring side effects. isolation: isolate is the one property whose only job is that.

The key idea

isolate traps, it does not lift

Common mistakes

Try it in this playground