A Pen by Fabian Tempel on CodePen.
Created
April 15, 2015 14:10
-
-
Save trilodge/5e5fd15264e32bd6d84c to your computer and use it in GitHub Desktop.
Box-Shadow bug on iPhone 6 plus with iOS 8.3 and 8.4 beta
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="box">Setting the "spread" value in box-shadow disables the rendering of box-shadow on iphone 6 plus</div> | |
<div class="box1">Setting a background-color with rgba and an alpha value other than 1 disables the rendering of box-shadow on iphone 6 plus</div> | |
<div class="box2">Box-shadow should be displayed as it should</div> | |
<p>If you need both values and still want to have a box-shadow, setting border-radius: .1px; is the workaround you will need.</p> | |
<p>Tested on iphone 6 plus and iOS 8.3 and 8.4 beta</p> |
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
.box { | |
height: 100px; | |
width: 80%; | |
box-shadow: 2px 2px 0 1px rgba(0,0,0,.5); | |
background: red; | |
margin-bottom: 1em; | |
position: relative; | |
} | |
.box1 { | |
height: 100px; | |
width: 80%; | |
box-shadow: 2px 2px 0 rgba(0,0,0,.5); | |
background: rgba(255,0,0,.9); | |
margin-bottom: 1em; | |
position: relative; | |
} | |
.box2 { | |
height: 100px; | |
width: 80%; | |
box-shadow: 2px 2px 0 rgba(0,0,0,.5); | |
background: rgba(255,0,0,1); | |
margin-bottom: 1em; | |
position: relative; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment