代码示例:(标识:cssref_isolation)
<!DOCTYPE html>
<html>
<head>
<style>
.a {
  background-color: lightgreen;
}
#b {
  width: 250px;
  height: 250px;
}
.c {
  width: 100px;
  height: 100px;
  border: 1px solid black;
  padding: 2px;
  mix-blend-mode: difference;
}
#d {
  isolation: auto;
}
#e {
  isolation: isolate;
}
</style>
</head>
<body>

<h1>isolation 属性</h1>

<div id="b" class="a">
  <div id="d">
  <div class="a c">div d: isolation: auto;</div>
  </div>
  <div id="e">
  <div class="a c">div e: isolation: isolate;</div>
  </div>
</div>

<p><b>注释:</b>版本 79 之前的 Edge 不支持 isolation 属性。</p>

</body>
</html>
运行结果: