blob: 30be2c9f07f58d80bc1094b13d8844762b1a3e76 [file] [log] [blame]
<head>
<style>
.outer {
border: 10px solid black;
border-radius: 100px;
overflow: hidden;
width: 200px;
height: 100px;
margin: 10px;
display: inline-block
}
.inner {
background: #808080;
width: 100%;
height: 100%;
color: #FFFFFF;
-webkit-transform: rotate(45deg) translateZ(0);
}
</style>
</head>
<body>
The white text and grey backgrounds should all clip to the border-radius.
<br>
<!-- static container -->
<div class="outer" style="position: static;">
<div class="inner" style="position: static;">
static &gt; static
</div>
</div>
<div class="outer" style="position: static;">
<div class="inner" style="position: relative;">
static &gt; relative
</div>
</div>
<!-- relative container -->
<div class="outer" style="position: relative;">
<div class="inner" style="position: static;">
relative &gt; static
</div>
</div>
<div class="outer" style="position: relative;">
<div class="inner" style="position: relative;">
relative &gt; relative
</div>
</div>
<br>
<div class="outer" style="position: relative;">
<div class="inner" style="position: absolute;">
relative &gt; absolute
</div>
</div>