I try to make rounded-corner of a div mask the content of its children. I did it thank to this question, but it doesn't work when the children is transformed.
So this http://jsfiddle.net/ut2DW/ works well in Firefox and Safari (!), but not in Chrome nor Opera, unless we remove the transforms property (and adjust margins) :
CSS (more in JSFiddle)
div {
position: absolute;
}
a {
display: block;
overflow: hidden;
-webkit-border-radius: 0 0 20px 0;
border-radius: 0 0 20px 0;
}
span {
display: block;
transform: rotate(45deg);
}
HTML
<div>
<a href="#">
<span></span>
</a>
</div>
How can I make it works in (at least) Chrome? (Oh please, I don't wanna make an image!)
Thanks!