coderef

isolationBaseline · Widely available

The isolation CSS property creates a new stacking context, which impacts z-index ordering and blend modes.

Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Jan 15, 2020. Widely available since Jul 15, 2022.

Browser support

DesktopChrome
1–40Not supported
41+Supportedsince Mar 3, 2015
Current: 155
Edge
12–18Not supported
79+Supportedsince Jan 15, 2020
Current: 154
Firefox
1–35Not supported
36+Supportedsince Feb 24, 2015
Current: 157
Safari
1–7Not supported
8+Supportedsince Oct 16, 2014
Current: 27
MobileChrome Android
18–40Not supported
41+Supportedsince Mar 11, 2015
Current: 155
Firefox Android
4–35Not supported
36+Supportedsince Feb 27, 2015
Current: 157
Safari iOS
1–7Not supported
8+Supportedsince Sep 17, 2014
Current: 27

How to use

This feature is Baseline widely available — use it freely, no fallback needed.

Example

Full syntax and examples are on MDN: isolation.

Feature detection

CSS · check before using
@supports (isolation: initial) {
  /* styles that rely on isolation */
}

/* or in JavaScript */
if (CSS.supports("isolation", "initial")) {
  // use it
}

Documentation (MDN)

Specification