what is the max number css rules I can specify in style sheet per browser.
Internet Explorer 6-9 have a few reported limits:
@import
, <link>
or <style>
, are ignored after the first 31@import
statements nested 4 or more levels deep are ignoredThese limits are outlined in KB 262161. In IE10 these limits were significantly raised to:
@import
nesting no longer has its own limitThere are no such reported limits for other browsers, but in theory any of them could run into performance issues with a large number of unoptimised CSS rules.
Various sources:
http://simple.procoding.net/2009/02/20/internet-explorer-limits-number-of-external-css-files-to-32/
http://joshua.perina.com/africa/gambia/fajara/post/internet-explorer-css-file-size-limit
http://am-blog.no-ip.org/BlogEngine/post/2010/03/24/CSS-File-Size-Limit-in-Internet-Explorer-6-7-8.aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With