Tassmanian / css3-mediaqueries-js

Automatically exported from code.google.com/p/css3-mediaqueries-js
0 stars 0 forks source link

Invalid procedure with large numbers of media queries #13

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Run the js with the attached CSS file. this produces an error on line 543 of 
the src, and stops parsing the CSS.

What version of the product are you using? On what operating system?

IE8, Windows (via parallels, Mac OSX Lion)

Original issue reported on code.google.com by tomlongm...@gmail.com on 20 Jun 2012 at 5:29

Attachments:

GoogleCodeExporter commented 9 years ago
Any progress on this problem? I am encountering it while using Sass and 
generating a large number of media queries.

Original comment by nivek2...@gmail.com on 20 Jan 2014 at 4:59

GoogleCodeExporter commented 9 years ago
Found the problem.

This library creates a separate stylesheet for every media query it finds. If 
you are using a preprocessor like Sass and nesting your media queries this will 
create an abundance of stylesheets and very quickly hit an IE hard limit of 32 
stylesheets per page, and silently ignore the rest!

Original comment by nivek2...@gmail.com on 20 Jan 2014 at 6:14

GoogleCodeExporter commented 9 years ago
Back from the dead... There is a new version of the script. It has some CSS 
parsing and processing improvements. If you're still using it, or would like to 
try again, could you confirm that this issue is solved or not?

Original comment by wou...@dynora.nl on 4 Apr 2014 at 11:46

GoogleCodeExporter commented 9 years ago
I got the same problem with the current version. :(

I use the foundation framework, which also creates a lot of media queries...

Original comment by sgilch.n...@gmail.com on 18 Aug 2014 at 9:34

GoogleCodeExporter commented 9 years ago
Ohh.. i used the version from svn...
https://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries_src.js

That looks like an old version: 1.0 (20110330)?
Where can i get the 'april 2014' version?

Original comment by sgilch.n...@gmail.com on 18 Aug 2014 at 9:46