css3 - Weird box-shadow bug in Chrome on Android -
i'm having weird bug box-shadow , text-shadow android chrome. chrome on desktop works fine, on android, shows weird shadow effect. take @ screenshot better understand what's going on:
as can see, chrome on android rendering both text-shadow , box-shadow in different way. here's example of code i'm using menu label , hamburger menu:
#menu-toggle{ position: fixed; top: 17px; right: 13px; z-index: 120; padding: 0; color: #fff; font-family: 'katahdin round',arial,helvetica,sans-serif; border: none; background-color: transparent; outline: 0; text-shadow: 0 0 7px rgba(17,17,17,.3); } #menu-toggle .bottom, #menu-toggle .middle, #menu-toggle .top{ position: absolute; left: 0; width: 21px; height: 3px; background-color: #fff; -webkit-transition: .2s ease-in-out; transition: .2s ease-in-out; -webkit-box-shadow: 0 0 7px rgba(17,17,17,.3); box-shadow: 0 0 7px rgba(17,17,17,.3); }
has have saw kind of bug? there workaround one?
one observation: logo @ left svg graphic. uses svg filter box-shadow on it.
any tips welcome!
i know old thread finally, got fix issue.
this correct way put box shadow css. takes 6 values inset can left optional.
box-shadow: horizontal vertical blur spread color inset;
i know blur , spread optional in few browsers, require value.
a simple example works in browsers.
target { -webkit-box-shadow: 0px 0px 7px 0px rgba(17,17,17,.3); -moz-box-shadow: 0px 0px 7px 0px rgba(17,17,17,.3); box-shadow: 0px 0px 7px 0px rgba(17,17,17,.3); }
the same thing applies text-shadow. worked me hope works well.
Comments
Post a Comment