Skip to content

Instantly share code, notes, and snippets.

@loai-kanou
Forked from LeaVerou/dabblet.css
Created August 5, 2013 03:47
Show Gist options
  • Select an option

  • Save loai-kanou/6153363 to your computer and use it in GitHub Desktop.

Select an option

Save loai-kanou/6153363 to your computer and use it in GitHub Desktop.
WebKit bug:
/**
* WebKit bug:
Elements do not get clipped according to border-radius
when parent has a perspective() tranfsorm
*/
.outer {
background: deeppink;
width: 300px;
height: 300px;
transform: perspective(1px); /* Toggle this */
border-radius: 50%;
overflow: hidden;
}
.inner {
background: black;
width: 200px;
height: 200px;
}
<div class="outer">
<div class="inner"></div>
</div>
// alert('Hello world!');
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment