CSSisolation Property
Example
Create a new stacking context for the element with id="e":
#e {
isolation: isolate;
}
Try it Yourself »isolation: isolate;
}
Definition and Usage
Theisolation property defines whether an element must create a new stacking content.
Note: Theisolation property is helpful when used withbackground-blend-mode or mix-blend-mode.
| Default value: | auto |
|---|---|
| Inherited: | no |
| Animatable: | no.Read aboutanimatable |
| Version: | CSS3 |
| JavaScript syntax: | object.style.isolation="isolate"Try it |
Browser Support
The numbers in the table specify the first browser version that fully supports the property.
| Property | |||||
|---|---|---|---|---|---|
| isolation | 41.0 | 79.0 | 36.0 | Yes | 30.0 |
CSS Syntax
isolation: auto|isolate|initial|inherit;
Property Values
| Value | Description |
|---|---|
| auto | Default. A new stacking context is created only if one of the properties applied to the element requires it |
| isolate | A new stacking context must be created |
| initial | Sets this property to its default value.Read aboutinitial |
| inherit | Inherits this property from its parent element.Read aboutinherit |
Related Pages
HTML DOM reference:The isolation property

