JSFiddle - React, Tailwind, and code Playground

HTML

<p class="test">test</p>

CSS

.test {
    color:#000000;
    padding: 1em;
}

.ie11 .test {
    background: purple;
    margin-bottom:.5em;
}

.ie11 .test {
    color: red;
}

JavaScript

var ie11Styles = ['msTextCombineHorizontal'];

 var d = document;
 var b = d.body;
 var s = b.style;

 // Test IE11 properties
 for (var i = 0; i < ie11Styles.length; i++) {
     property = ie11Styles[i];
    
 }
 if (s[property] != undefined) {
         ieVersion = "ie11";
     }
 if (ieVersion) {
     b.className = ieVersion;
 }