blob: ee1c9907de3998274a2ecb478278c4b05637d316 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<html lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Transform and positioned ancestor</title>
<style type="text/css" media="screen">
#wrapper {
border: 1px solid black;
position: relative;
width: 300px;
.container {
height: 200px;
width: 200px;
margin: 50px;
background-color: gray;
transform: rotate(0);
.box {
position: absolute;
left: 50px;
top: 50px;
height: 100px;
width: 100px;
background-color: red;
.green-box {
position: absolute;
left: 100px;
top: 100px;
height: 100px;
width: 100px;
background-color: green;
<p>You should see a green box inside a gray box. If you see red, the test has failed. <a href=""></a>
<div id="wrapper">
<div class="container">
<div class="box"></div>
<div class="green-box"></div>