https://bugzilla.wikimedia.org/show_bug.cgi?id=31676
--- Comment #28 from Krinkle <[email protected]> 2012-06-28 19:44:26 UTC --- Recently there have been a few bug reports about "Invalid argument" exceptions being thrown in IE9. Presumably only in debug mode, but I don't know. Reason is exactly this bug. Where other IE versions silently ignored the too-many (plus, its hard to keep track of the number manually since anything can insert a stylesheet in many different ways) - in IE9 they decided to screw the world even more and throw exceptions at the time of cssText property assingment if the limit is reached. Probably we added a few more modules and the default number is getting close to 31, add a few gadgets and bingo. * Lets wrap a try/catch to at least make stuff not fail (and call log() from production) * Solving bug 38024 will reduce the number of stylesheets but as before, it can still happen. But at least it won't break stuff and (at least for now) there is no reliable way to work around that limit because ** stuff like @import needs to be on top, so concatenating unrelated modules is a bad idea ** syntax errors... ** On top of the 31-stylesheet limit IE also a max of 4095 rules per stylesheet[1]. So concatenating everything doesn't help either. By the way, there is a node library that tries to work around this[2]. [1] http://blogs.msdn.com/b/ieinternals/archive/2011/05/14/internet-explorer-stylesheet-rule-selector-import-sheet-limit-maximum.aspx [2] http://blesscss.com/ -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
