Created
September 19, 2012 23:50
-
-
Save andrewdh/3753088 to your computer and use it in GitHub Desktop.
Chrome border-radius bug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Chrome border-radius bug | |
*/ | |
body { | |
background-color: #777; | |
} | |
.wrapper { | |
position:relative; | |
width:200px; | |
height:200px; | |
overflow:hidden; | |
border:3px solid red; | |
border-radius: 20px; | |
z-index: 999; | |
} | |
#inside, #sosumi { | |
width: 100%; | |
height: 100%; | |
background-color: #333; | |
border-radius: 16px; | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="wrapper"> | |
<img id="sosumi" src="http://images.apple.com/safari/images/overview_hero.jpg"/> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"separate","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment