Truly independent web browser
<!DOCTYPE html>
<link rel="match" href="../../expected/css/backface-hidden-ancestor-culls-descendant-3d-contexts-ref.html" />
<style>
body {
margin: 0;
background: white;
}
.pass {
position: absolute;
top: 50px;
left: 50px;
width: 300px;
height: 300px;
background: green;
}
.flipped {
position: absolute;
top: 50px;
left: 50px;
width: 300px;
height: 300px;
background: red;
transform: rotateY(180deg);
backface-visibility: hidden;
}
.context {
transform-style: preserve-3d;
width: 200px;
height: 200px;
background: red;
}
.participant {
width: 100px;
height: 100px;
background: red;
transform: translateZ(10px);
}
.lone-context {
position: absolute;
top: 0;
left: 220px;
width: 60px;
height: 60px;
background: red;
transform-style: preserve-3d;
}
</style>
<!-- The flipped element hides its backface, so neither it nor the 3D rendering contexts flattened into it paint over the green square. -->
<div class="pass"></div>
<div class="flipped">
<div class="context">
<div class="participant"></div>
</div>
<div class="lone-context"></div>
</div>