What CSS targets Windows 10 IE 13.0 only? No other browser RRS feed

  • Question

  • CSS only for windows 10 IE 13.0, no other browser
    Thursday, September 22, 2016 1:20 AM


  • function getIEVersion(odoc){
    if (odoc.body.style.scrollbar3dLightColor!=undefined)
     if (!!win.WebGLRenderingContext) {return 'IE11';}
     else if (odoc.body.style.msGridRows!=undefined) {return 'IE10';}
     else if (odoc.body.style.opacity!=undefined) {return 'IE9';}
     else if (odoc.body.style.msBlockProgression!=undefined) {return 'IE8';}
     else if (odoc.body.style.msInterpolationMode!=undefined) {return 'IE7';}
     else if (odoc.body.style.textOverflow!=undefined) {return 'IE6'}
     else {return 'IE5.5 or lower';}

    ..... note: IE's versions can emulate feature sets of lower IE versions... eg... using IE11 you visit a web page that has IE10' x-ua header.... getIEVersion(document) returns 'IE10'.... you have to casscade down through the features list of each IE version to determine what the current Emulation Mode is being used.

    to display a list of style properties that is supported by the web pages x-ua Emulation Mode type

    document.body.style in the console tab of dev tools. The Emulation tab shows how the current emulation mode was established... eg. x-ua header, Enterprise Mode site list etc.



    Thursday, September 22, 2016 4:14 AM