marcj / css-element-queries

CSS Element-Queries aka Container Queries. High-speed element dimension/media queries in valid css.
http://marcj.github.io/css-element-queries/
MIT License
4.27k stars 487 forks source link

Use 'window' if available as 'root' in exporting #151

Closed newlukai closed 7 years ago

newlukai commented 7 years ago

We use css-element-queries (actually only the ResizeSensor) in a Polymer based app. While we were able to use ResizeSensor in the dev environment, we weren't able to use it in the built artifact created by gulp and Polymer CLI. The problem was that 'root' was undefined in the exporting part of the ResizeSensor. I accordingly changed ElementQueries.js, but didn't test the change.

marcj commented 7 years ago

Thanks, we'll see how it turns out.