use initial width for element not working in IE
Like you said, generally width: auto
will have a similar effect. Having the rules:
.my-selector {
width: auto;
width: initial;
}
Should cause it to use initial
if it's supported and auto
otherwise.
Using width: auto;
inline, inside the script solves the problem on Chrome, FIrefox and IE 11. Just not sure if there is a better way.