blob: e2b66550d0844d94a09b281ae2f5c61de65ae772 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Transform Center with Borders</title>
<style type="text/css" media="screen">
.container {
height: 200px;
width: 200px;
margin: 30px;
outline: 5px solid black;
background-color: red;
}
.box {
height: 200px;
width: 100px;
background-color: green;
border-right: 100px solid gray;
box-sizing: auto;
-webkit-transform: rotate(90deg);
}
.border-box {
width: 200px;
box-sizing: border-box;
}
</style>
</head>
<body>
<p>Tests that origin of rotation is the center of the border box, with and without box-sizing</p>
<div class="container">
<div class="box">box-sizing: auto</div>
</div>
<div class="container">
<div class="box border-box">box-sizing: auto</div>
</div>
</body>
</html>