css - Modernizr is not detecting features within IE8 -


for strange reason, modernizr script not run detection on featuers within ie8 browser, @ least think doesn't.

anyway, using cms cannot insert "no-js" class html tag when create page - not seem bother other web browsers (including more recent versions of ie). modernizr able inject classes html tag though "no-js" class not present (thank god). have checked , verified when using various browser implementations of "inspect element".

i testing ie8 in virtual box using install vdi modernie.

i have specific class when modernizr detects there no support smil svg animation ie8 not seem use it. have div whereby using animated svg file background image. ie8 display background colour of div , not specific modernizr fallback class tells browser use static png file background image. due face using background: cover property not supported (but assume still see png file not stretched out cover dimensions of div.

i'll outline css using below:

.jumbotron.handwriting.dark{     background: #cd4833 url('http://qanzac100.slq.qld.gov.au/__data/assets/file/0007/283939/textpattern.svg') no-repeat center center fixed;     -webkit-background-size:cover;     -moz-background-size:cover;     -o-background-size:cover;     background-size:cover;     /*z-index: 4;*/ }  /* modernizr fallback browsers not support svg smil animation. replaces bg image static png file */ .no-smil .jumbotron.handwriting.dark{     background: url('http://qanzac100.slq.qld.gov.au/__data/assets/image/0004/284017/textpattern.png') no-repeat center center fixed;     background-size:cover; } 

now have looked on modernizr website quite few times , don't see anywhere says not support ie8. there perhaps doing wrong here? works in ie11 , switches on browser still not support smil.

i have yet try in ie9, shortly.

update: ie9 works fine support svg object. did test run myself @ here www.coolwebs.com.au/svgtest/ without putting in cms using , seemed work. not sure what's causing problem seems in ie8. have modernizr working on ie11 when detecting workaround smil svg animation.


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -

ios - Possible to get UIButton sizeThatFits to work? -