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…
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.
isolate traps, it does not lift
opacity: 0.99 just to trap z-index It works, but the whole element turns slightly see-through (its colours shift) and the browser may give it its own layer. Use isolation: isolate: clear intent, no side effects.isolate to bring an element forward isolate lifts nothing: it only keeps the children’s z-index and blend inside. The element itself stays at layer 0. To order groups, still use z-index on the group.isolate is on, in the wrong place Put isolation: isolate on the wrapper (the parent of the blended element), not on the blended element itself. The group is formed at the parent.isolation: isolate on .card The menu goes straight over the badge, and the drop’s purple outside the card turns pure. One line, two effects.isolate to .blob The drop still blends with the stripes: isolate on the element itself only traps its children.isolate on .header with no z-index The menu sinks under the card, even at z-index 100: isolate traps, it does not raise.