blob: 9743f20b0c4ae90603978adb8243d3bfb3e5a540 [file] [log] [blame]
<!DOCTYPE html>
<!--
| Test stacking context and containing blocks, verifying that the boxes are
| positioned correctly when combined with transforms.
-->
<html>
<head>
<style>
body {
font-family: Roboto;
margin: 0px;
}
div {
padding: 10px;
}
.always_containing_block {
opacity: 0.999;
transform: rotate(0deg);
}
.absolute {
position: absolute;
}
.fixed {
position: fixed;
}
.blue1 {
background-color: #BBDEFB;
}
.blue2 {
background-color: #2196F3;
}
.blue3 {
background-color: #1976D2;
}
.blue4 {
background-color: #0D47A1;
}
</style>
</head>
<body style="background-color:#000000;">
<div class="always_containing_block absolute">
<div class="blue1 absolute" style="transform: rotate(15deg); width:75px; height:75px;">
<div class="blue2 absolute" style="z-index: -1; top:25px; left:25px">
<div class="blue3 fixed" style="top:50px; left:50px;">
<div class="blue4 absolute" style="z-index: 1; top:5px; left:5px">
</div>
</div>
</div>
</div>
</div>
<div class="always_containing_block absolute" style="left:100px;">
<div class="blue1 absolute" style="transform: rotate(15deg); width:75px; height:75px;">
<div class="blue2 absolute" style="transform: rotate(-30deg); z-index: -1; top:25px; left:25px">
<div class="blue3 fixed" style="top:50px; left:50px;">
<div class="blue4 absolute" style="z-index: 1; top:5px; left:5px">
</div>
</div>
</div>
</div>
</div>
<div class="always_containing_block absolute" style="left:225px;">
<div class="blue1 absolute" style="transform: rotate(15deg); width:75px; height:75px;">
<div class="blue2 absolute" style="z-index: -1; top:25px; left:25px">
<div class="blue3 fixed" style="transform: rotate(-30deg); top:50px; left:50px;">
<div class="blue4 absolute" style="z-index: 1; top:5px; left:5px">
</div>
</div>
</div>
</div>
</div>
</body>
</html>