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

Unable to parse distant css files (S3 css files) #211

Closed rawpixel-vincent closed 3 years ago

rawpixel-vincent commented 6 years ago

The css parsing doesn't works if the css that contain media queries are stored on a distant server (we tested with Amazon S3).

Not sure how to solve this or if it can be solved.

Just thought it would be good to report it for now.

marcj commented 6 years ago

This is not supported as the browser has no access to resources from a cross domain. Either use the same domain to deliver your content or set cross domain headers.