Slide 10
Slide 10 text
10
● Within a stacking context, elements are painted together, other
items outside the same stacking context can’t be painted
between them.
● Having an active z-index triggers the creation of a stacking
context.
● Other ways including “overflow: scroll”, “opacity: < 1” (listed in MDN
stacking context)
Stacking context