HTML & CSS · Senior · Question 62 of 75

Why add isolation: isolate to a component root?

Explanation

It creates a stacking context without side effects like position or transform. Internal z-index: 10 then only competes with siblings inside the component.

Further reading

Problem with a question

HTML & CSS · Senior · question 62

Test yourself

Take the HTML & CSS · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz