stealjs / steal-css

StealJS plugin for CSS
https://www.npmjs.com/package/steal-css
MIT License
2 stars 1 forks source link

Fix style tag insertion in MS Edge #57

Closed m-mujica closed 7 years ago

m-mujica commented 7 years ago

Starting from IE11 the styleSheet property is not supported, Edge will insert the tag if styleSheet is set but it won't apply the styles. Same thing if either appendChild, innerText, textContent or innerHtml is set; the only way to make Edge apply the style is by setting style.sheet

tag inserted but styles not applied bs_win10_edge_15 0 1

The styles were applied but for some reason the style tag is shown empty bs_win10_edge_15 0

ltpr5jb

m-mujica commented 7 years ago

@matthewp mind if I merge this one?

matthewp commented 7 years ago

Go for it.