jonathantneal / flexibility

A JavaScript polyfill for Flexbox
https://jonathantneal.github.io/flexibility/
MIT License
4.33k stars 479 forks source link

'currentStyle' get null on IE10 #91

Closed lmai5 closed 11 months ago

lmai5 commented 7 years ago

Hello,

I'm facing a problem in flexibility.js in which 'currentStyle' get null just on IE10. It does not happen on IE11 or Chrome, Firefox. Does this library support IE10? Or it it a bug? I have also attach the screen capture.

Thanks.

image

pygy commented 7 years ago

Hi @maihoanglai flexibility is AFAIK intended for IE 8 and 9. You can load it between conditional comments:

<!--[if IE]>
<script src="./flexibility.js"></script>
<![endif]-->

if IE is enough, since IE10+ don't understand conditional comments.

For IE10, you can use PostCSS and Autoprefixer.