Normally I don't bother the small differences in the rendering of box-shadows in different browsers, but in this case the box-shadow size is kind of important. IE9 and IE10 render a smaller box-shadow. Explorer 9 can be fixed with a little larger box shadow using conditional comments, but IE10 appears to have eliminated support for conditional comments. Is there a way of correcting the IE10 box-shadow size and make it a little larger like safari, chrome, firefox?
I know it's a little similar to this question but maybe someone have a trick for box-shadows size that works in IE9/10 or IE10 only.
For the record - this is a responsive site, and the box-shadow in question is applied to a li element with percentage width (for navigation)
I found a solution. There are several ie10 hacks out there, but this one is
CSS only
and targets bothIE9
andIE10
. It is called the@media Zero Hack
. You can find this one and other ie10 hacks at http://www.impressivewebs.com/ie10-css-hacks/It uses a parsing bug in
IE9/10
. If this bug is fixed inIE11
this will also be future proof. I don't know howIE11
will handlebox-shadow
. More on moving IE specific CSS into @media blocks