ausi / cq-prolyfill

Prolyfill for CSS Container Queries
https://au.si/css-container-element-queries
MIT License
565 stars 39 forks source link

Does cq-prolyfill inlined my style? #31

Open ariona opened 8 years ago

ariona commented 8 years ago

I was wondering why my sourcemaps isn't working, since the style is being inlined in the head but i haven't done that.

Turn out the cq-prolyfill did that, is there any way to still use sourcemap while using cq-prolyfill.

ausi commented 8 years ago

Yes, cq-prolyfill has to convert the :container() parts of the CSS so that the browser can parse it. You can prevent that by using the PostCSS plugin or Sass mixin. And you should enable CORS if the stylesheet is loaded from a different domain.